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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62d635
mov eax, dword fs:[0]
push eax
mov eax, 0x1694
call fcn.005b5230
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1690], ecx
push 0
push 0
push 0
push 0
push 0x104
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x1b4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0061d860
add esp, 0x20
test eax, eax
je 0x4741c7
xor eax, eax
jmp 0x474742
mov eax, dword [ebp + 8]
push eax
call fcn.0061e630
add esp, 4
test eax, eax
je 0x4741de
xor eax, eax
jmp 0x474742
mov ecx, dword [ebp + 8]
push ecx
push fcn.0061deb0
lea edx, [ebp - 0x15fc]
push edx
call fcn.00477a40
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0x15fc]
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x14c]
call fcn.0040e4b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x15e8]
call fcn.0040e480
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1ac]
and edx, 0x800
je 0x4742b5
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x1624]
call fcn.0040e3a0
mov byte [ebp - 4], 3
push 0xfde9
lea ecx, [ebp - 0x1624]
push ecx
lea edx, [ebp - 0x1640]
push edx
mov ecx, dword [ebp - 0x1690]
call fcn.00473500
mov dword [ebp - 0x1694], eax
mov eax, dword [ebp - 0x1694]
mov dword [ebp - 0x1698], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1698]
push ecx
lea ecx, [ebp - 0x15e8]
call fcn.0040e550
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1640]
call fcn.0040e530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1624]
call fcn.0040e3e0
jmp 0x47432c
lea edx, [ebp - 0x124]
push edx
lea ecx, [ebp - 0x165c]
call fcn.0040e3a0
mov byte [ebp - 4], 5
push 0
lea eax, [ebp - 0x165c]
push eax
lea ecx, [ebp - 0x1678]
push ecx
mov ecx, dword [ebp - 0x1690]
call fcn.00473500
mov dword [ebp - 0x169c], eax
mov edx, dword [ebp - 0x169c]
mov dword [ebp - 0x16a0], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x16a0]
push eax
lea ecx, [ebp - 0x15e8]
call fcn.0040e550
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1678]
call fcn.0040e530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x165c]
call fcn.0040e3e0
lea ecx, [ebp - 0x15e8]
call fcn.0040ee50
mov dword [ebp - 0x158], eax
xor ecx, ecx
mov word [ebp - 0x15cc], cx
push 0x40e
push 0
lea edx, [ebp - 0x15ca]
push edx
call fcn.005b4de0
add esp, 0xc
lea ecx, [ebp - 0x15e8]
call fcn.0040ee50
shl eax, 1
push eax
lea ecx, [ebp - 0x15e8]
call fcn.0040e5d0
push eax
push 0x410
lea eax, [ebp - 0x15cc]
push eax
call fcn.005b5e0a
add esp, 0x10
lea ecx, [ebp - 0x15cc]
mov dword [ebp - 0x11bc], ecx
mov dword [ebp - 0x1600], 0
jmp 0x4743b1
mov edx, dword [ebp - 0x1600]
add edx, 1
mov dword [ebp - 0x1600], edx
mov eax, dword [ebp - 0x1600]
cmp eax, dword [ebp - 0x158]
jg 0x474470
mov ecx, dword [ebp - 0x1600]
movzx edx, word [ebp + ecx*2 - 0x15cc]
test edx, edx
jne 0x4743ec
mov eax, dword [ebp - 0x11bc]
push eax
lea ecx, [ebp - 0x14c]
call fcn.0040e5b0
jmp 0x474470
mov ecx, dword [ebp - 0x1600]
movzx edx, word [ebp + ecx*2 - 0x15cc]
cmp edx, 0x5c
je 0x474412
mov eax, dword [ebp - 0x1600]
movzx ecx, word [ebp + eax*2 - 0x15cc]
cmp ecx, 0x2f
jne 0x47446b
xor edx, edx
mov eax, dword [ebp - 0x1600]
mov word [ebp + eax*2 - 0x15cc], dx
mov ecx, dword [ebp - 0x11bc]
push ecx
lea ecx, [ebp - 0x14c]
call fcn.0040e5b0
push 0x64970c
lea ecx, [ebp - 0x14c]
call fcn.0040e5b0
push 0
lea ecx, [ebp - 0x14c]
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x1600]
lea eax, [ebp + edx*2 - 0x15ca]
mov dword [ebp - 0x11bc], eax
jmp 0x4743a2
mov ecx, dword [ebp - 0x11bc]
movzx edx, word [ecx]
test edx, edx
jne 0x4744c2
mov dword [ebp - 0x167c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x15e8]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15fc]
call fcn.00476300
mov eax, dword [ebp - 0x167c]
jmp 0x474742
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x14c]
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0xffffffff
jne 0x474537
mov dword [ebp - 0x1680], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x15e8]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15fc]
call fcn.00476300
mov eax, dword [ebp - 0x1680]
jmp 0x474742
mov eax, dword [ebp - 0x150]
push eax
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
lea edx, [ebp - 0x130]
push edx
call fcn.00477a40
add esp, 0xc
mov byte [ebp - 4], 7
lea eax, [ebp - 0x130]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x11b8], 0x1000
mov ecx, 1
test ecx, ecx
je 0x4746a4
push 0x1000
lea edx, [ebp - 0x11b4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0061dc10
add esp, 0xc
mov dword [ebp - 0x1604], eax
cmp dword [ebp - 0x1604], 0
jge 0x4745f8
mov dword [ebp - 0x1684], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x130]
call fcn.004762e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x15e8]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15fc]
call fcn.00476300
mov eax, dword [ebp - 0x1684]
jmp 0x474742
cmp dword [ebp - 0x1604], 0
jne 0x47460b
jmp 0x4746a4
mov dword [ebp - 0x1608], 0
push 0
lea ecx, [ebp - 0x1608]
push ecx
mov edx, dword [ebp - 0x1604]
push edx
lea eax, [ebp - 0x11b4]
push eax
mov ecx, dword [ebp - 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47464b
mov edx, dword [ebp - 0x1608]
cmp edx, dword [ebp - 0x1604]
je 0x47469f
mov dword [ebp - 0x1688], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x130]
call fcn.004762e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x15e8]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15fc]
call fcn.00476300
mov eax, dword [ebp - 0x1688]
jmp 0x474742
jmp 0x47456b
lea eax, [ebp - 0x18]
push eax
movzx ecx, word [ebp - 0x1a4]
push ecx
mov edx, dword [ebp - 0x1a4]
shr edx, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea eax, [ebp - 0x15f0]
push eax
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea edx, [ebp - 0x15f0]
push edx
lea eax, [ebp - 0x15f0]
push eax
lea ecx, [ebp - 0x15f0]
push ecx
mov edx, dword [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov dword [ebp - 0x168c], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x130]
call fcn.004762e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x15e8]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15fc]
call fcn.00476300
mov eax, dword [ebp - 0x168c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret 8