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

Disassembly:
push 0x2f0
mov eax, 0x44904a
call fcn.0044747f
mov dword [ebp - 0x204], ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x248]
call fcn.00408560
push ecx
push ecx
lea ecx, [ebp - 0x2fc]
call fcn.00405589
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 4]
sub eax, dword [esi]
push eax
push ecx
push dword [esi]
push ecx
lea ecx, [ebp - 0x2ec]
call fcn.0040549d
mov ecx, eax
call fcn.004054bc
mov ecx, eax
call fcn.00407726
pop ecx
mov ecx, eax
call fcn.004054bc
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x2fc]
call fcn.0040567f
cmp dword [eax + 0x14], 0x10
jb 0x404d66
mov eax, dword [eax]
lea ecx, [ebp - 0x248]
push ecx
push eax
call dword [sym.imp.zlib1.dll_Ordinal_77]
lea ecx, [ebp - 0x8c]
mov esi, eax
call fcn.004027f0
test esi, esi
je 0x405051
push ecx
lea ecx, [ebp - 0x228]
call fcn.00405cba
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.zlib1.dll_Ordinal_65]
test eax, eax
sete byte [ebp - 0x1fd]
test eax, eax
jne 0x405039
mov eax, dword [ebp - 0x224]
sub eax, dword [ebp - 0x228]
mov dword [ebp - 0x218], eax
push ebx
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x228]
lea eax, [ebp - 0xf4]
push eax
push esi
call dword [sym.imp.zlib1.dll_Ordinal_64]
test eax, eax
jne 0x404ffc
push dword [ebp - 0x228]
lea ecx, [ebp - 0x44]
call fcn.00402790
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 7
call fcn.00403320
mov eax, dword [ebp - 0x204]
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0xd8]
mov dword [ebp - 0x214], edi
cmp dword [eax + 0x14], ebx
je 0x404ef1
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x1f8]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x1fc], ecx
cmovae eax, dword [ebp - 0x44]
push ecx
push eax
lea ecx, [ebp - 0x1fc]
call fcn.0040457c
mov edx, dword [ebp - 0x204]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
push dword [ebp - 0x1fc]
lea edx, [edx + 4]
call fcn.004078cd
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00405478
lea ecx, [ebp - 0x5c]
call fcn.00402920
lea eax, [ebp - 0x1f8]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1fc], eax
je 0x404e93
push dword [ebp - 0x1fc]
call fcn.0042b963
pop ecx
push 0x457918
lea ecx, [ebp - 0x5c]
call fcn.004028c0
push 0x45791c
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 5
call fcn.004028c0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x74]
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0xa4]
call fcn.004081ab
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00405478
lea ecx, [ebp - 0xa4]
call fcn.00402920
lea ecx, [ebp - 0x74]
call fcn.00402920
lea ecx, [ebp - 0x5c]
call fcn.00402920
test edi, edi
je 0x404fcd
test dword [ebp - 0xc0], 0x40000000
jne 0x404fcd
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x208], ebx
push edi
lea ecx, [ebp - 0x210]
mov byte [ebp - 4], 7
call fcn.00405c45
mov eax, dword [ebp - 0x204]
cmp dword [eax + 0x2c], ebx
je 0x404f4b
add eax, 0x1c
cmp dword [eax + 0x14], 0x10
jb 0x404f41
mov eax, dword [eax]
push eax
push esi
call dword [sym.imp.zlib1.dll_Ordinal_79_1]
jmp 0x404f52
push esi
call dword [sym.imp.zlib1.dll_Ordinal_67]
test eax, eax
jne 0x404fba
push edi
push dword [ebp - 0x210]
push esi
call dword [sym.imp.zlib1.dll_Ordinal_68]
test eax, eax
jle 0x404fb1
cmp dword [ebp - 0x1c], 0
je 0x404fb1
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.0040826b
mov edi, eax
cmp edi, 0xffffffff
je 0x404fb1
push ebx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], ebx
push eax
push dword [ebp - 0x214]
push dword [ebp - 0x210]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405018
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.zlib1.dll_Ordinal_72]
jmp 0x404fc0
mov byte [ebp - 0x1fd], bl
lea ecx, [ebp - 0x210]
call fcn.00402950
jmp 0x404fe6
cmp dword [ebp - 0x1c], 0
je 0x404fe6
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ebx
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x2c]
call fcn.00402920
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.004027f0
jmp 0x405002
mov byte [ebp - 0x1fd], bl
push esi
call dword [sym.imp.zlib1.dll_Ordinal_66]
test eax, eax
jne 0x405039
mov eax, dword [ebp - 0x218]
jmp 0x404dc3
lea ecx, [ebp - 0x210]
mov byte [ebp - 0x1fd], bl
call fcn.00402950
lea ecx, [ebp - 0x2c]
call fcn.00402920
lea ecx, [ebp - 0x44]
call fcn.004027f0
push esi
call dword [sym.imp.zlib1.dll_Ordinal_62]
mov bl, byte [ebp - 0x1fd]
lea ecx, [ebp - 0x228]
call fcn.00406209
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x294]
call fcn.00405650
lea eax, [ebp - 0x294]
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::ios_base.0
push eax
call fcn.00446cc2
pop ecx
mov al, bl
call fcn.0044743d
ret 4