Function at 0x4725a0
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5095c8
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x565680]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
push 0x400
mov byte [ebp - 4], 2
call fcn.004e3d44
add esp, 4
mov dword [ebp - 0xf4], eax
push 0x800
call fcn.004e3d44
add esp, 4
mov dword [ebp - 0xfc], eax
push 0x4000
call fcn.004e3d44
add esp, 4
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x100], eax
call fcn.00471c60
mov eax, dword [0x5651b8]
mov ecx, 0x5651b8
mov byte [ebp - 4], 3
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xe8], esi
mov eax, dword [0x5651b8]
mov ecx, 0x5651b8
mov byte [ebp - 4], 4
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0xe4], edi
mov eax, dword [0x5651b8]
mov ecx, 0x5651b8
mov byte [ebp - 4], 5
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x11c], ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 6
call fcn.004720f0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00472020
lea ecx, [ebp - 0xa0]
call fcn.00472040
xor eax, eax
mov dword [ebp - 0x104], eax
cmp eax, dword [ebp - 0x124]
jge 0x472c57
lea ecx, [ebp - 0xa0]
test eax, eax
jne 0x4726cd
call fcn.00472040
jmp 0x4726d2
call fcn.00472080
lea ecx, [ebp - 0xa0]
call fcn.00472200
push 0x400
push 0
push dword [ebp - 0xf4]
call fcn.004e67c0
mov esi, dword [ebp - 0xfc]
push 0x800
push 0
push esi
call fcn.004e67c0
add esp, 0x18
lea eax, [ebp - 0xdc]
push 0
push 0
push 0
push 0
push 0x400
push dword [ebp - 0xf4]
lea ecx, [ebp - 0xa0]
push eax
call fcn.00471fc0
push 0x400
push esi
push 0xffffffffffffffff
push dword [ebp - 0xf4]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test esi, esi
jne 0x47274d
xor ecx, ecx
jmp 0x472761
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x472752
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xe8]
call fcn.00409940
mov eax, dword [ebp + 8]
lea esi, [edi - 0x10]
lea edx, [eax - 0x10]
cmp edx, esi
je 0x4727d3
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4727be
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x4727be
push edx
call fcn.004053a0
add esp, 4
mov dword [ebp - 0xe0], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4727b3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xe0]
lea edi, [eax + 0x10]
mov dword [ebp - 0xe4], edi
jmp 0x4727d3
push dword [eax - 0xc]
lea ecx, [ebp - 0xe4]
push eax
call fcn.00409940
mov edi, dword [ebp - 0xe4]
mov esi, dword [ebp - 0xe8]
push 0x5231fc
push esi
call fcn.004ebe29
add esp, 8
test eax, eax
jne 0x4727f0
or eax, 0xffffffff
jmp 0x4727f4
sub eax, esi
sar eax, 1
mov dword [ebp - 0xe0], eax
test eax, eax
js 0x472aaa
inc eax
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0xe8]
call fcn.00407270
push eax
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0x110]
push eax
mov byte [ebp - 4], 7
call fcn.00402a20
add esp, 0xc
mov edx, dword [eax]
lea ecx, [edi - 0x10]
lea eax, [edx - 0x10]
mov byte [ebp - 4], 8
mov dword [ebp - 0xec], ecx
cmp eax, ecx
je 0x472920
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0xf8], eax
jl 0x47290b
mov eax, dword [edx - 0x10]
lea edi, [edx - 0x10]
mov dword [ebp - 0xf0], eax
cmp eax, dword [ecx]
jne 0x47290b
mov eax, dword [eax]
mov ecx, dword [ebp - 0xf0]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x472897
cmp ecx, dword [edi]
jne 0x472897
mov eax, 1
lock xadd dword [edx], eax
jmp 0x4728e0
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0xf0], edx
test edx, edx
jne 0x4728b1
call fcn.00409e90
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.004e5e78
mov edi, dword [ebp - 0xf0]
add esp, 0x10
mov ecx, dword [ebp - 0xf8]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x472900
mov edx, dword [ebp - 0xec]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0x10
mov dword [ebp - 0xe4], edi
jmp 0x472920
push dword [edx - 0xc]
lea ecx, [ebp - 0xe4]
push edx
call fcn.00409940
mov edi, dword [ebp - 0xe4]
mov edx, dword [ebp - 0x110]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x472944
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x114]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x472968
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [esi - 0xc]
sub eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe8]
dec eax
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00408120
mov edx, dword [eax]
lea ecx, [esi - 0x10]
lea eax, [edx - 0x10]
mov byte [ebp - 4], 9
mov dword [ebp - 0xf0], ecx
cmp eax, ecx
je 0x472a7d
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0xf8], eax
jl 0x472a68
mov eax, dword [edx - 0x10]
lea esi, [edx - 0x10]
mov dword [ebp - 0xec], eax
cmp eax, dword [ecx]
jne 0x472a68
mov eax, dword [eax]
mov ecx, dword [ebp - 0xec]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x4729f4
cmp ecx, dword [esi]
jne 0x4729f4
mov eax, 1
lock xadd dword [edx], eax
jmp 0x472a3d
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0xec], edx
test edx, edx
jne 0x472a0e
call fcn.00409e90
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.004e5e78
mov esi, dword [ebp - 0xec]
add esp, 0x10
mov ecx, dword [ebp - 0xf8]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x472a5d
mov edx, dword [ebp - 0xf0]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x10
mov dword [ebp - 0xe8], esi
jmp 0x472a7d
push dword [edx - 0xc]
lea ecx, [ebp - 0xe8]
push edx
call fcn.00409940
mov esi, dword [ebp - 0xe8]
mov edx, dword [ebp - 0x108]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4727d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4727d9
mov esi, dword [ebp - 0xfc]
test esi, esi
jne 0x472ab8
xor ecx, ecx
jmp 0x472acf
mov ecx, esi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x472ac0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xe8]
call fcn.00409940
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00402a20
add esp, 0xc
mov edx, dword [eax]
lea esi, [edi - 0x10]
lea ecx, [edx - 0x10]
mov byte [ebp - 4], 0xa
cmp ecx, esi
je 0x472b5e
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x472b49
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x472b49
push ecx
call fcn.004053a0
add esp, 4
mov dword [ebp - 0xec], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x472b3e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xec]
lea edi, [eax + 0x10]
mov dword [ebp - 0xe4], edi
jmp 0x472b5e
push dword [edx - 0xc]
lea ecx, [ebp - 0xe4]
push edx
call fcn.00409940
mov edi, dword [ebp - 0xe4]
mov edx, dword [ebp - 0x10c]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x472b82
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xe8]
push 0x2f
push esi
call fcn.004e7628
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x472b9e
or ecx, 0xffffffff
jmp 0x472ba2
sub ecx, esi
sar ecx, 1
mov eax, dword [esi - 0xc]
dec eax
push 0
cmp ecx, eax
jne 0x472bca
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0xa0]
call fcn.00471f80
mov eax, dword [ebp - 0x104]
inc eax
jmp 0x4726aa
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xe0], eax
jmp 0x472bf0
push 0x4000
push dword [ebp - 0x100]
lea ecx, [ebp - 0xa0]
call fcn.00472350
test eax, eax
jne 0x472c39
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xa0]
call fcn.00471f80
mov eax, dword [ebp - 0x104]
inc eax
jmp 0x4726aa
push 0
lea ecx, [ebp - 0x118]
push ecx
push eax
push dword [ebp - 0x100]
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x472bf0
push dword [ebp - 0xf4]
call fcn.004e5e73
mov eax, dword [ebp - 0xfc]
push eax
call fcn.004e5e73
push dword [ebp - 0x100]
call fcn.004e5e73
add ebx, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 5
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x472c9a
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 4
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x472cba
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x472cd7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xa0]
call fcn.00471db0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x472d02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x472d23
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
jmp 0x472d3f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e52a4
mov esp, ebp
pop ebp
ret