Function at 0x403fb6
Capabilities:
Create directory
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
xor eax, eax
push 0x40
pop ecx
mov byte [ebp - 0x10c], 0
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
push 0x40
mov byte [ebp - 0x210], 0
pop ecx
lea edi, [ebp - 0x20f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
cmp eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
je 0x4041da
cmp byte [eax], 0
je 0x4041da
lea ecx, [ebp - 0x10c]
push ecx
push eax
call fcn.00403b8b
cmp byte [ebp - 0x10c], 0
pop ecx
pop ecx
je 0x40403e
lea eax, [ebp - 0x10c]
push eax
call fcn.00404218
pop ecx
lea ecx, [ebp - 0x10c]
dec ecx
movsx eax, byte [eax + ecx]
jmp 0x404040
xor eax, eax
cmp eax, 0x5c
jne 0x4040a5
xor edi, edi
cmp byte [ebp - 0x10c], 0
je 0x404213
cmp edi, 0x104
jge 0x404213
lea ebx, [ebp + edi - 0x10c]
cmp byte [ebx], 0x5c
jne 0x40408c
cmp edi, 1
jle 0x40408c
cmp byte [ebp + edi - 0x10d], 0x3a
je 0x40408c
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 4], eax
mov al, byte [ebx]
mov byte [ebp + edi - 0x210], al
inc edi
cmp byte [ebp + edi - 0x10c], 0
jne 0x404054
jmp 0x404213
push esi
mov ebx, 0x80
push ebx
push 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 3
mov edi, 0xc0000000
push edi
lea eax, [ebp - 0x10c]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4040d6
test eax, eax
jne 0x404170
lea eax, [ebp - 0x10c]
push eax
call fcn.00403c1f
test eax, eax
pop ecx
jne 0x404170
lea eax, [ebp - 0x10c]
push 0x5c
push eax
call fcn.0040435e
test eax, eax
pop ecx
pop ecx
je 0x404170
xor eax, eax
cmp byte [ebp - 0x10c], al
jmp 0x404155
cmp eax, 0x104
jge 0x40415a
cmp byte [ebp + eax - 0x10c], 0x5c
jne 0x40413e
cmp eax, 1
jle 0x40413e
cmp byte [ebp + eax - 0x10d], 0x3a
je 0x40413e
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov cl, byte [ebp + eax - 0x10c]
mov byte [ebp + eax - 0x210], cl
inc eax
cmp byte [ebp + eax - 0x10c], 0
mov dword [ebp + 8], eax
jne 0x404109
push 0
push ebx
push 4
push 0
push 3
push edi
lea eax, [ebp - 0x10c]
push eax
call esi
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0xffffffff
je 0x404213
cmp dword [ebp + 8], 0
je 0x404213
cmp dword [ebp + 0x10], 0
je 0x404203
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x404203
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov edx, eax
or edx, ecx
je 0x4041a7
mov edx, ecx
sar edx, 0x1f
mov dword [ebp - 8], ecx
jmp 0x4041bc
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
jne 0x4041bc
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4041e1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4041fd
cmp dword [ebp - 4], esi
je 0x40420a
and dword [ebp - 4], 0
jmp 0x40420a
mov dword [ebp - 4], 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x4041dc