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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fcdf
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x42b060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1ac], ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x29c]
sub esp, 8
mov dword [ebp - 0x1ec], 0x408c60
mov dword [ebp - 0x1e8], 0x408cd0
mov dword [ebp - 0x1e4], 0x408d10
mov dword [ebp - 0x1e0], 0x408d50
mov dword [ebp - 0x1dc], 0x408d60
mov dword [ebp - 0x1d8], 0x408dd0
mov dword [ebp - 0x1d4], fcn.00403d20
mov dword [ebp - 0x1d0], 0
call fcn.00403f20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28c]
mov eax, dword [ebp - 0x28c]
mov esi, dword [edi]
mov edx, dword [edi + 4]
sub edx, esi
mov eax, dword [eax + 4]
add ecx, eax
push edx
push ecx
push esi
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0x28c]
call fcn.00403d70
mov ecx, eax
call fcn.00407940
add esp, 4
mov ecx, eax
call fcn.00403d70
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x29c]
call fcn.00404050
cmp dword [eax + 0x14], 0x10
jb 0x40219a
mov eax, dword [eax]
lea ecx, [ebp - 0x1ec]
push ecx
push eax
call dword [sym.imp.zlib1.dll_Ordinal_77]
cmp dword [ebp - 0x30], 0x10
mov edi, eax
mov dword [ebp - 0x1a4], edi
jb 0x4021c1
push dword [ebp - 0x44]
call fcn.00408e72
add esp, 4
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
test edi, edi
jne 0x4021de
xor bl, bl
jmp 0x40255f
push ecx
lea ecx, [ebp - 0x1c4]
call fcn.004047a0
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.zlib1.dll_Ordinal_65]
mov bl, 1
mov byte [ebp - 0x19d], bl
test eax, eax
jne 0x402545
mov eax, dword [ebp - 0x1c0]
mov ebx, dword [ebp - 0x1c4]
sub eax, ebx
mov dword [ebp - 0x1cc], eax
lea esp, [esp]
push 0
push 0
push 0
push 0
push eax
push ebx
lea eax, [ebp - 0x94]
push eax
push edi
call dword [sym.imp.zlib1.dll_Ordinal_64]
test eax, eax
jne 0x4024de
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
cmp byte [ebx], al
jne 0x402255
xor ecx, ecx
jmp 0x402269
mov ecx, ebx
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402260
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00406060
mov byte [ebp - 4], 2
mov ecx, 0x42cbb0
mov eax, dword [0x42cbb0]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1a8], esi
mov eax, dword [ebp - 0x1ac]
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x78]
mov dword [ebp - 0x1c8], ebx
cmp dword [eax + 0x14], 0
je 0x40236d
cmp dword [eax + 0x18], 8
lea edx, [eax + 4]
jb 0x4022b5
mov edx, dword [edx]
test edx, edx
jne 0x4022bd
xor ecx, ecx
jmp 0x4022d1
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4022c2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1a8]
call fcn.00405f40
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x198]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x19c], ecx
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
lea ecx, [ebp - 0x19c]
call fcn.00405270
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x19c]
test edx, edx
jne 0x402314
xor ecx, ecx
jmp 0x40232f
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402320
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1a8]
call fcn.004071d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x198]
mov eax, dword [ebp - 0x19c]
cmp eax, ecx
je 0x402359
push eax
call fcn.00409763
add esp, 4
sub esp, 8
lea ecx, [ebp - 0x1a8]
call fcn.00403500
mov esi, dword [ebp - 0x1a8]
test ebx, ebx
je 0x4024cd
test dword [ebp - 0x60], 0x40000000
jne 0x4024cd
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1b0], 0
push ebx
lea ecx, [ebp - 0x1b8]
mov byte [ebp - 4], 5
call fcn.00404750
mov eax, dword [ebp - 0x1ac]
cmp dword [eax + 0x2c], 0
je 0x4023d1
add eax, 0x1c
cmp dword [eax + 0x14], 0x10
jb 0x4023c7
mov eax, dword [eax]
push eax
push edi
call dword [sym.imp.zlib1.dll_Ordinal_79]
jmp 0x4023d8
push edi
call dword [sym.imp.zlib1.dll_Ordinal_67]
mov edi, dword [ebp - 0x1b8]
test eax, eax
jne 0x402446
push ebx
push edi
push dword [ebp - 0x1a4]
call dword [sym.imp.zlib1.dll_Ordinal_68]
test eax, eax
jle 0x402438
cmp dword [esi - 0xc], 0
je 0x402438
mov ecx, esi
call fcn.00402680
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402438
push 0
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x1a8], 0
push eax
push dword [ebp - 0x1c8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
test eax, eax
je 0x4024e7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1a4]
call dword [sym.imp.zlib1.dll_Ordinal_72]
jmp 0x40244d
mov byte [ebp - 0x19d], 0
test edi, edi
je 0x402478
push edi
call fcn.00408e72
add esp, 4
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1b0], 0
mov edi, dword [ebp - 0x1a4]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40249c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 0x10
jb 0x4024b1
push dword [ebp - 0x2c]
call fcn.00408e72
add esp, 4
mov ebx, dword [ebp - 0x1c4]
push edi
call dword [sym.imp.zlib1.dll_Ordinal_66]
test eax, eax
jne 0x40253f
mov eax, dword [ebp - 0x1cc]
jmp 0x402220
cmp dword [esi - 0xc], 0
je 0x40247e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40247e
mov byte [ebp - 0x19d], 0
jmp 0x4024b7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1a4]
call dword [sym.imp.zlib1.dll_Ordinal_72]
xor bl, bl
test edi, edi
je 0x402508
push edi
call fcn.00408e72
add esp, 4
add esi, 0xfffffff0
mov byte [ebp - 4], 2
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402526
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0x10
jb 0x402537
push dword [ebp - 0x2c]
call fcn.00408e72
add esp, 4
mov edi, dword [ebp - 0x1a4]
jmp 0x402545
mov bl, byte [ebp - 0x19d]
push edi
call dword [sym.imp.zlib1.dll_Ordinal_62]
mov eax, dword [ebp - 0x1c4]
test eax, eax
je 0x40255f
push eax
call fcn.00408e72
add esp, 4
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0xffffffff
call fcn.00403fd0
lea eax, [ebp - 0x234]
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::ios_base.0
push eax
call fcn.0041d567
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408e77
mov esp, ebp
pop ebp
ret 4