Function at 0x40e730
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41e66b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor ebp, ebp
push 0x7d000
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebp
jne 0x40e772
xor eax, eax
jmp 0x40ea1c
push 0x58
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x40e793
mov ecx, eax
call fcn.00419ea0
mov edi, eax
jmp 0x40e795
xor edi, edi
cmp edi, ebp
mov dword [esp + 0x24], 0xffffffff
jne 0x40e7b1
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
jmp 0x40ea1c
push ebp
push ebp
push ebp
mov ebp, dword [esp + 0x38]
push ebp
call fcn.00407150
mov ecx, dword [ebx + 0x181c]
add esp, 0x10
dec ecx
mov eax, 2
cmp ecx, 6
ja case.0x40e7d2.5
jmp dword [ecx*4 + 0x40ea34]
mov eax, 3
jmp case.0x40e7d2.5
mov eax, 6
jmp case.0x40e7d2.5
mov eax, 1
jmp case.0x40e7d2.5
mov eax, 4
jmp case.0x40e7d2.5
mov eax, 2
push eax
mov ecx, edi
call fcn.0041a060
push 0xfa
mov ecx, edi
call fcn.0041a0d0
push 0
mov ecx, edi
call fcn.00419f10
mov ecx, dword [ebx + 0x1a54]
call fcn.00407370
mov ecx, dword [ebx + 0x1a54]
push eax
call fcn.00407360
push eax
mov ecx, edi
call fcn.0041a460
push esi
mov ecx, edi
call fcn.0041a9e0
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jbe 0x40e868
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
push esi
push ebp
call ebx
test eax, eax
je 0x40e9fe
push esi
mov ecx, edi
call fcn.0041a9e0
test eax, eax
ja 0x40e848
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x1a48]
call fcn.00407650
mov eax, dword [esp + 0x10]
push 0x800
push esi
mov ecx, dword [eax + 0x1a48]
call fcn.00407540
test eax, eax
jle 0x40e8c7
push eax
push esi
mov ecx, edi
call fcn.0041a460
push esi
mov ecx, edi
call fcn.0041a9e0
test eax, eax
jbe 0x40e877
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
push esi
push ebp
call ebx
test eax, eax
je 0x40e9fe
push esi
mov ecx, edi
call fcn.0041a9e0
test eax, eax
ja 0x40e8a5
jmp 0x40e877
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x1a48]
call fcn.00407670
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x1a4c]
call fcn.00407650
mov ecx, dword [esp + 0x10]
push 0x800
push esi
mov ecx, dword [ecx + 0x1a4c]
call fcn.00407540
test eax, eax
jle 0x40e935
push eax
push esi
mov ecx, edi
call fcn.0041a460
push esi
mov ecx, edi
call fcn.0041a9e0
test eax, eax
jbe 0x40e8e5
lea edx, [esp + 0x14]
push 0
push edx
push eax
push esi
push ebp
call ebx
test eax, eax
je 0x40e9fe
push esi
mov ecx, edi
call fcn.0041a9e0
test eax, eax
ja 0x40e913
jmp 0x40e8e5
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x1a4c]
call fcn.00407670
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x1a50]
call fcn.00407650
mov edx, dword [esp + 0x10]
push 0x800
push esi
mov ecx, dword [edx + 0x1a50]
call fcn.00407540
test eax, eax
jle 0x40e9b0
push eax
push esi
mov ecx, edi
call fcn.0041a460
push esi
mov ecx, edi
call fcn.0041a9e0
test eax, eax
jbe 0x40e953
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
push esi
push ebp
call ebx
test eax, eax
je 0x40e99f
push esi
mov ecx, edi
call fcn.0041a9e0
test eax, eax
ja 0x40e981
jmp 0x40e953
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x1a50]
call fcn.00407670
jmp 0x40e9fe
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x1a50]
call fcn.00407670
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, edi
call fcn.0041a730
push esi
mov ecx, edi
call fcn.0041a9e0
test eax, eax
jbe 0x40e9fe
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
push esi
push ebp
call ebx
test eax, eax
je 0x40e9fe
push esi
mov ecx, edi
call fcn.0041a9e0
test eax, eax
ja 0x40e9e2
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, edi
call fcn.00419f00
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4