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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ed47
mov eax, dword fs:[0]
push eax
mov eax, 0x15f4
call fcn.0040a090
mov eax, dword [0x43e054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x114]
mov esi, dword [ebp + 0xc]
push 0
push 0
push 0
push 0
push 0x104
push eax
lea eax, [ebp - 0x15dc]
mov dword [ebp - 0x15e4], ebx
push eax
push ebx
call fcn.004109c0
test eax, eax
jne 0x40f63b
push ebx
call fcn.00410dd0
test eax, eax
jne 0x40f63b
push ebx
lea eax, [ebp - 0x15f8]
push fcn.00410920
push eax
call fcn.0040ec80
add esp, 0xc
push esi
lea ecx, [ebp - 0x153c]
mov dword [ebp - 4], 0
call fcn.00401120
xor eax, eax
mov dword [ebp - 0x1540], 7
mov dword [ebp - 0x1544], 0
mov word [ebp - 0x1554], ax
test dword [ebp - 0x15d4], 0x800
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x156c]
push eax
je 0x40f2c9
call fcn.00403474
mov byte [ebp - 4], 3
push 0xfde9
jmp 0x40f2d4
call fcn.00403474
mov byte [ebp - 4], 4
push 0
lea eax, [ebp - 0x156c]
mov ecx, edi
push eax
lea eax, [ebp - 0x1584]
push eax
call fcn.0040ed70
push eax
lea ecx, [ebp - 0x1554]
call fcn.00403500
lea ecx, [ebp - 0x1584]
call fcn.00406bc7
lea ecx, [ebp - 0x156c]
mov byte [ebp - 4], 2
call fcn.004034f6
mov esi, dword [ebp - 0x1544]
lea eax, [ebp - 0x524]
push 0x410
push 0
push eax
mov dword [ebp - 0x15e0], esi
call fcn.00417110
cmp dword [ebp - 0x1540], 8
lea eax, [esi + esi]
push eax
lea ecx, [ebp - 0x1554]
cmovae ecx, dword [ebp - 0x1554]
lea eax, [ebp - 0x524]
push ecx
push 0x410
push eax
call fcn.0040f880
xor esi, esi
lea edi, [ebp - 0x524]
add esp, 0x1c
cmp dword [ebp - 0x15e0], esi
jl 0x40f441
nop
movzx eax, word [ebp + esi*2 - 0x524]
test ax, ax
je 0x40f416
cmp eax, 0x5c
je 0x40f38b
cmp eax, 0x2f
jne 0x40f402
cmp esi, 0x208
jae 0x40f411
xor eax, eax
mov word [ebp + esi*2 - 0x524], ax
cmp word [edi], ax
jne 0x40f3a6
xor ecx, ecx
jmp 0x40f3bf
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f3b0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x153c]
call fcn.00403160
push 1
push 0x42f46c
lea ecx, [ebp - 0x153c]
call fcn.00403160
cmp dword [ebp - 0x1528], 8
lea eax, [ebp - 0x153c]
push 0
cmovae eax, dword [ebp - 0x153c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edi, [ebp + esi*2 - 0x522]
inc esi
cmp esi, dword [ebp - 0x15e0]
jle 0x40f370
jmp 0x40f441
call fcn.0040a306
cmp word [edi], 0
jne 0x40f420
xor ecx, ecx
jmp 0x40f434
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f425
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x153c]
call fcn.00403160
cmp word [edi], 0
jne 0x40f4da
mov eax, dword [ebp - 0x1540]
cmp eax, 8
jb 0x40f469
inc eax
lea ecx, [ebp - 0x1554]
push eax
push dword [ebp - 0x1554]
call fcn.0040f820
xor eax, eax
mov dword [ebp - 0x1540], 7
mov word [ebp - 0x1554], ax
mov eax, dword [ebp - 0x1528]
mov dword [ebp - 0x1544], 0
cmp eax, 8
jb 0x40f4a4
inc eax
lea ecx, [ebp - 0x153c]
push eax
push dword [ebp - 0x153c]
call fcn.0040f820
xor eax, eax
mov dword [ebp - 0x1528], 7
mov word [ebp - 0x153c], ax
lea eax, [ebp - 0x15f8]
push eax
mov dword [ebp - 0x152c], 0
call fcn.0040ecb0
add esp, 4
mov eax, 1
jmp 0x40f63d
cmp dword [ebp - 0x1528], 8
lea eax, [ebp - 0x153c]
push 0
cmovae eax, dword [ebp - 0x153c]
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f586
mov eax, dword [ebp - 0x1540]
cmp eax, 8
jb 0x40f529
inc eax
lea ecx, [ebp - 0x1554]
push eax
push dword [ebp - 0x1554]
call fcn.0040f820
xor eax, eax
mov dword [ebp - 0x1540], 7
mov word [ebp - 0x1554], ax
mov eax, dword [ebp - 0x1528]
mov dword [ebp - 0x1544], 0
cmp eax, 8
jb 0x40f564
inc eax
lea ecx, [ebp - 0x153c]
push eax
push dword [ebp - 0x153c]
call fcn.0040f820
xor eax, eax
mov dword [ebp - 0x1528], 7
mov dword [ebp - 0x152c], 0
mov word [ebp - 0x153c], ax
jmp 0x40f62c
push edi
push dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1560]
push eax
call fcn.0040ec80
add esp, 0xc
lea eax, [ebp - 0x1524]
push 0x1000
push eax
push ebx
call fcn.004112f0
mov esi, eax
test esi, esi
js 0x40f607
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x40f6e9
push 0
lea eax, [ebp - 0x15e0]
mov dword [ebp - 0x15e0], 0
push eax
push esi
lea eax, [ebp - 0x1524]
push eax
push edi
call ebx
test eax, eax
je 0x40f65b
cmp dword [ebp - 0x15e0], esi
jne 0x40f65b
push 0x1000
lea eax, [ebp - 0x1524]
push eax
push dword [ebp - 0x15e4]
call fcn.004112f0
mov esi, eax
test esi, esi
jns 0x40f5ba
lea eax, [ebp - 0x1560]
push eax
call fcn.0040ecb0
add esp, 4
lea ecx, [ebp - 0x1554]
call fcn.00406bc7
lea ecx, [ebp - 0x153c]
call fcn.00406bc7
lea eax, [ebp - 0x15f8]
push eax
call fcn.0040ecb0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409ec6
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x1560]
push eax
call fcn.0040ecb0
mov eax, dword [ebp - 0x1540]
add esp, 4
cmp eax, 8
jb 0x40f688
inc eax
lea ecx, [ebp - 0x1554]
push eax
push dword [ebp - 0x1554]
call fcn.0040f820
xor eax, eax
mov dword [ebp - 0x1540], 7
mov word [ebp - 0x1554], ax
mov eax, dword [ebp - 0x1528]
mov dword [ebp - 0x1544], 0
cmp eax, 8
jb 0x40f564
inc eax
lea ecx, [ebp - 0x153c]
push eax
push dword [ebp - 0x153c]
call fcn.0040f820
xor eax, eax
mov dword [ebp - 0x1528], 7
mov dword [ebp - 0x152c], 0
mov word [ebp - 0x153c], ax
jmp 0x40f62c
lea eax, [ebp - 0x1600]
push eax
mov eax, dword [ebp - 0x15cc]
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea eax, [ebp - 0x15ec]
push eax
lea eax, [ebp - 0x1600]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 0x15ec]
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea eax, [ebp - 0x1560]
push eax
call fcn.0040ecb0
mov eax, dword [ebp - 0x1540]
add esp, 4
cmp eax, 8
jb 0x40f752
inc eax
lea ecx, [ebp - 0x1554]
push eax
push dword [ebp - 0x1554]
call fcn.0040f820
xor eax, eax
mov dword [ebp - 0x1540], 7
mov word [ebp - 0x1554], ax
mov eax, dword [ebp - 0x1528]
mov dword [ebp - 0x1544], 0
cmp eax, 8
jb 0x40f78d
inc eax
lea ecx, [ebp - 0x153c]
push eax
push dword [ebp - 0x153c]
call fcn.0040f820
xor eax, eax
mov dword [ebp - 0x1528], 7
mov word [ebp - 0x153c], ax
lea eax, [ebp - 0x15f8]
push eax
mov dword [ebp - 0x152c], 0
call fcn.0040ecb0
add esp, 4
mov eax, 1
jmp 0x40f63d