Function at 0x4024e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x314
push ebx
push ebp
mov ebp, ecx
push esi
push edi
xor edi, edi
mov eax, dword [ebp + 4]
mov dword [esp + 0x10], edi
cmp eax, edi
mov dword [esp + 0x14], edi
je 0x4026c1
push 0x800
call sub.MFC42.DLL_operatornew
mov esi, eax
push 0x234
mov dword [esp + 0x18], esi
call sub.MFC42.DLL_operatornew
add esp, 8
mov ebx, eax
cmp esi, edi
mov dword [esp + 0x14], ebx
je 0x4027b1
cmp ebx, edi
je 0x4027b1
mov esi, dword [esp + 0x328]
test esi, esi
jne 0x402542
lea esi, [ebp + 8]
push esi
call fcn.00402800
mov edi, eax
add esp, 4
test edi, edi
jne 0x4026d2
mov ecx, 0x8d
mov edi, ebx
rep stosd dword es:[edi], eax
push ebx
mov ecx, ebp
call fcn.004023d0
test al, al
je 0x4026ea
mov al, byte [ebx + 0x230]
test al, al
jne 0x4026fe
mov al, byte [esp + 0x32c]
mov edi, dword [sym.imp.MSVCRT.dll__makepath]
test al, al
je 0x4025bc
lea eax, [esp + 0x224]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push 0
push ebx
call dword [sym.imp.MSVCRT.dll__splitpath]
lea edx, [esp + 0x238]
lea eax, [esp + 0x30]
push edx
push eax
push 0
push 0
push ebx
call edi
add esp, 0x28
push 0
push ebx
push esi
lea ecx, [esp + 0x12c]
push 0
push ecx
call edi
lea edx, [esp + 0x134]
push edx
call fcn.00402900
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x40275d
push eax
push 0x80
push 2
push eax
push eax
lea eax, [esp + 0x134]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402772
mov ecx, dword [ebp + 4]
push ecx
call fcn.00403d20
test eax, eax
jne 0x402785
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 4]
push 0x800
push edx
push eax
call fcn.00403690
mov esi, eax
test esi, esi
jle 0x402689
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 0
push ecx
push esi
push edx
push ebx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402660
cmp dword [esp + 0x18], esi
jne 0x402673
jmp 0x40261f
push str.D:WorkGenSetupSetupZipUnzipUnzipper.cpp
push 0x1d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x40267f
push str.D:WorkGenSetupSetupZipUnzipUnzipper.cpp
push 0x1dc
push 0x1d
call fcn.004015c0
add esp, 0xc
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 4]
push eax
call fcn.00403890
test esi, esi
jne 0x4027a0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x120]
mov edx, dword [ecx + 0x218]
push edx
push eax
call fcn.004029a0
add esp, 8
jmp 0x4027c7
push str.D:WorkGenSetupSetupZipUnzipUnzipper.cpp
push 0x189
push 0x15
jmp 0x4027bd
push str.D:WorkGenSetupSetupZipUnzipUnzipper.cpp
push 0x198
push edi
call fcn.004015c0
add esp, 0xc
jmp 0x4027c7
push str.D:WorkGenSetupSetupZipUnzipUnzipper.cpp
push 0x19d
push 0x54f
jmp 0x4027bd
push 0
add ebp, 8
push ebx
push ebp
lea ecx, [esp + 0x28]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__makepath]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402735
lea eax, [esp + ecx + 0x1b]
mov cl, byte [esp + ecx + 0x1b]
cmp cl, 0x5c
jne 0x402735
mov byte [eax], 0
lea edx, [esp + 0x1c]
push edx
call fcn.00402800
mov edi, eax
add esp, 4
test edi, edi
je 0x4027c7
push str.D:WorkGenSetupSetupZipUnzipUnzipper.cpp
push 0x1b1
push edi
call fcn.004015c0
add esp, 0xc
jmp 0x4027c7
push str.D:WorkGenSetupSetupZipUnzipUnzipper.cpp
push 0x1c2
push edi
call fcn.004015c0
add esp, 0xc
jmp 0x4027c7
push str.D:WorkGenSetupSetupZipUnzipUnzipper.cpp
push 0x1c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x4027bd
push str.D:WorkGenSetupSetupZipUnzipUnzipper.cpp
push 0x1cb
push 0x54f
call fcn.004015c0
add esp, 0xc
mov edi, eax
jmp 0x4027cf
push str.D:WorkGenSetupSetupZipUnzipUnzipper.cpp
push 0x1ea
push 0x54f
jmp 0x4027bd
push str.D:WorkGenSetupSetupZipUnzipUnzipper.cpp
push 0x18f
push 8
call fcn.004015c0
add esp, 0xc
mov edi, eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4027e0
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4027f1
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x314
ret 8