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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543c15
mov eax, dword fs:[0]
push eax
mov eax, 0x1698
call fcn.00489eb0
mov eax, dword [0x580280]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1694], ecx
push 0
push 0
push 0
push 0
push 0x104
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x1bc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004ab700
add esp, 0x20
test eax, eax
je 0x45c5d7
xor eax, eax
jmp 0x45cb55
mov eax, dword [ebp + 8]
push eax
call fcn.004acb70
add esp, 4
test eax, eax
je 0x45c5ee
xor eax, eax
jmp 0x45cb55
mov ecx, dword [ebp + 8]
push ecx
push fcn.004ad300
lea edx, [ebp - 0x150]
push edx
call fcn.0045ef30
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0x150]
mov dword [ebp - 0x11c4], eax
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x144]
call fcn.00401280
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x15f8]
call fcn.00407b20
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1b4]
and edx, 0x800
je 0x45c6c5
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x1628]
call fcn.00405f30
mov byte [ebp - 4], 3
push 0xfde9
lea ecx, [ebp - 0x1628]
push ecx
lea edx, [ebp - 0x1644]
push edx
mov ecx, dword [ebp - 0x1694]
call fcn.0045b910
mov dword [ebp - 0x1698], eax
mov eax, dword [ebp - 0x1698]
mov dword [ebp - 0x169c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x169c]
push ecx
lea ecx, [ebp - 0x15f8]
call fcn.004078a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1644]
call fcn.00406040
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1628]
call fcn.00405fb0
jmp 0x45c73c
lea edx, [ebp - 0x124]
push edx
lea ecx, [ebp - 0x1660]
call fcn.00405f30
mov byte [ebp - 4], 5
push 0
lea eax, [ebp - 0x1660]
push eax
lea ecx, [ebp - 0x167c]
push ecx
mov ecx, dword [ebp - 0x1694]
call fcn.0045b910
mov dword [ebp - 0x16a0], eax
mov edx, dword [ebp - 0x16a0]
mov dword [ebp - 0x16a4], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x16a4]
push eax
lea ecx, [ebp - 0x15f8]
call fcn.004078a0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x167c]
call fcn.00406040
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1660]
call fcn.00405fb0
lea ecx, [ebp - 0x15f8]
call fcn.0041f510
mov dword [ebp - 0x164], eax
xor ecx, ecx
mov word [ebp - 0x15dc], cx
push 0x40e
push 0
lea edx, [ebp - 0x15da]
push edx
call fcn.00486c20
add esp, 0xc
lea ecx, [ebp - 0x15f8]
call fcn.0041f510
shl eax, 1
push eax
lea ecx, [ebp - 0x15f8]
call fcn.004012c0
push eax
push 0x410
lea eax, [ebp - 0x15dc]
push eax
call fcn.00487306
add esp, 0x10
lea ecx, [ebp - 0x15dc]
mov dword [ebp - 0x11c8], ecx
mov dword [ebp - 0x1604], 0
jmp 0x45c7c1
mov edx, dword [ebp - 0x1604]
add edx, 1
mov dword [ebp - 0x1604], edx
mov eax, dword [ebp - 0x1604]
cmp eax, dword [ebp - 0x164]
jg 0x45c880
mov ecx, dword [ebp - 0x1604]
movzx edx, word [ebp + ecx*2 - 0x15dc]
test edx, edx
jne 0x45c7fc
mov eax, dword [ebp - 0x11c8]
push eax
lea ecx, [ebp - 0x144]
call fcn.004078c0
jmp 0x45c880
mov ecx, dword [ebp - 0x1604]
movzx edx, word [ebp + ecx*2 - 0x15dc]
cmp edx, 0x5c
je 0x45c822
mov eax, dword [ebp - 0x1604]
movzx ecx, word [ebp + eax*2 - 0x15dc]
cmp ecx, 0x2f
jne 0x45c87b
xor edx, edx
mov eax, dword [ebp - 0x1604]
mov word [ebp + eax*2 - 0x15dc], dx
mov ecx, dword [ebp - 0x11c8]
push ecx
lea ecx, [ebp - 0x144]
call fcn.004078c0
push 0x55a210
lea ecx, [ebp - 0x144]
call fcn.004078c0
push 0
lea ecx, [ebp - 0x144]
call fcn.004012c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x1604]
lea eax, [ebp + edx*2 - 0x15da]
mov dword [ebp - 0x11c8], eax
jmp 0x45c7b2
mov ecx, dword [ebp - 0x11c8]
movzx edx, word [ecx]
test edx, edx
jne 0x45c8d2
mov dword [ebp - 0x1680], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x15f8]
call fcn.00406040
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.00406040
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.0045d800
mov eax, dword [ebp - 0x1680]
jmp 0x45cb55
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x144]
call fcn.004012c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0xffffffff
jne 0x45c947
mov dword [ebp - 0x1684], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x15f8]
call fcn.00406040
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.00406040
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.0045d800
mov eax, dword [ebp - 0x1684]
jmp 0x45cb55
mov eax, dword [ebp - 0x154]
push eax
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
lea edx, [ebp - 0x160]
push edx
call fcn.0045ef30
add esp, 0xc
mov byte [ebp - 4], 7
lea eax, [ebp - 0x160]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x11c0], 0x1000
mov ecx, 1
test ecx, ecx
je 0x45cab7
push 0x1000
lea edx, [ebp - 0x11bc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004acc30
add esp, 0xc
mov dword [ebp - 0x1608], eax
cmp dword [ebp - 0x1608], 0
jge 0x45ca0b
mov dword [ebp - 0x1688], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x160]
call fcn.0045d7d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x15f8]
call fcn.00406040
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.00406040
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.0045d800
mov eax, dword [ebp - 0x1688]
jmp 0x45cb55
cmp dword [ebp - 0x1608], 0
jne 0x45ca1e
jmp 0x45cab7
mov dword [ebp - 0x160c], 0
push 0
lea ecx, [ebp - 0x160c]
push ecx
mov edx, dword [ebp - 0x1608]
push edx
lea eax, [ebp - 0x11bc]
push eax
mov ecx, dword [ebp - 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45ca5e
mov edx, dword [ebp - 0x160c]
cmp edx, dword [ebp - 0x1608]
je 0x45cab2
mov dword [ebp - 0x168c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x160]
call fcn.0045d7d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x15f8]
call fcn.00406040
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.00406040
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.0045d800
mov eax, dword [ebp - 0x168c]
jmp 0x45cb55
jmp 0x45c97e
lea eax, [ebp - 0x14]
push eax
movzx ecx, word [ebp - 0x1ac]
push ecx
mov edx, dword [ebp - 0x1ac]
shr edx, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea eax, [ebp - 0x1600]
push eax
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea edx, [ebp - 0x1600]
push edx
lea eax, [ebp - 0x1600]
push eax
lea ecx, [ebp - 0x1600]
push ecx
mov edx, dword [ebp - 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov dword [ebp - 0x1690], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x160]
call fcn.0045d7d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x15f8]
call fcn.00406040
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.00406040
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.0045d800
mov eax, dword [ebp - 0x1690]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00486c08
mov esp, ebp
pop ebp
ret 8