Function at 0x40e380
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43d178
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44d404]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov esi, dword [0x46d478]
add esi, esi
add esi, esi
push esi
mov byte [esp + 0x1b], 0
call fcn.0042314d
mov ebx, eax
push esi
mov dword [esp + 0x24], ebx
call fcn.0042314d
mov ecx, dword [esp + 0xb4]
mov esi, dword [ecx + 0x438]
add esp, 8
xor ebp, ebp
test esi, esi
mov dword [esp + 0x20], eax
je 0x40e425
sub eax, ebx
mov edi, ebx
mov dword [esp + 0x24], eax
push 0x444374
push esi
push edi
call fcn.00421ec1
add esp, 0xc
cmp dword [edi], 0
je 0x40e417
mov edx, dword [esi + 0x208]
mov eax, dword [esp + 0x24]
mov dword [eax + edi], edx
add ebp, 1
add edi, 4
mov esi, dword [esi + 0x20c]
test esi, esi
jne 0x40e3f0
mov eax, dword [esp + 0x20]
push ebp
push eax
push ebx
lea esi, [esp + 0x34]
call fcn.00414af0
mov dword [esp + 0xa4], 0
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
lea ebx, [eax*8]
lea ecx, [eax*4 + 4]
sub ebx, eax
mov eax, dword [esp + 0x40]
lea edi, [esi*4 + 8]
lea eax, [eax + ebx*2]
lea esi, [eax + esi*4]
mov dword [esp + 0x94], esi
add esi, edi
add esi, edx
mov dword [esp + 0x88], ecx
lea ecx, [esi + ecx + 0xfce50]
push ecx
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], edi
mov dword [esp + 0x9c], ecx
call fcn.0042314d
mov edi, eax
add esp, 4
test edi, edi
jne 0x40e4c0
mov ecx, dword [esp + 0xb0]
push 0x4457a0
push ecx
call fcn.0040b3e0
add esp, 8
jmp 0x40e582
mov eax, edi
lea ecx, [esp + 0x28]
call fcn.004146b0
test al, al
jne 0x40e4e9
mov edx, dword [esp + 0xb0]
push 0x4457c0
push edx
call fcn.0040b3e0
add esp, 8
jmp 0x40e582
mov esi, dword [esp + 0xac]
push 0x4457e4
add esi, 0x43c
lea eax, [esp + 0x1c]
push esi
push eax
mov dword [esp + 0x24], 0
call fcn.00421ec1
mov eax, dword [esp + 0x24]
add esp, 0xc
test eax, eax
jne 0x40e52e
mov ecx, dword [esp + 0xb0]
push esi
push str.file__s_not_opened
push ecx
call fcn.0040b3e0
jmp 0x40e57f
mov ebx, dword [esp + 0x98]
push eax
push ebx
push 1
push edi
call fcn.0042336f
add esp, 0x10
cmp eax, ebx
jae 0x40e568
mov edx, dword [esp + 0x18]
push edx
call fcn.00421915
mov eax, dword [esp + 0xb4]
push esi
push 0x445814
push eax
call fcn.0040b3e0
add esp, 0x10
jmp 0x40e582
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00421915
push 1
push esi
call fcn.0040bf80
mov byte [esp + 0x23], 1
add esp, 0xc
mov ebx, dword [esp + 0x1c]
xor esi, esi
test ebp, ebp
jle 0x40e5a3
lea esp, [esp]
mov edx, dword [ebx + esi*4]
push edx
call fcn.00421915
add esi, 1
add esp, 4
cmp esi, ebp
jl 0x40e590
push ebx
call fcn.00421d6d
mov eax, dword [esp + 0x24]
push eax
call fcn.00421d6d
push edi
call fcn.00421d6d
mov eax, dword [0x46d550]
xor esi, esi
add esp, 0xc
cmp eax, esi
je 0x40e5eb
jmp 0x40e5d0
mov ecx, dword [eax + 4]
push eax
mov dword [0x46d550], ecx
call fcn.0042181b
mov eax, dword [0x46d550]
add esp, 4
cmp eax, esi
jne 0x40e5d0
mov edx, dword [esp + 0xac]
mov dword [esp + 0xa4], 0xffffffff
mov eax, dword [esp + 0x2c]
mov dword [0x46d550], esi
push eax
mov dword [edx + 0x438], esi
call fcn.004219de
mov eax, dword [esp + 0x2c]
add esp, 4
cmp eax, esi
je 0x40e63e
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push 0x4155f0
push ecx
push 0x1cbc
push eax
call fcn.004248dd
push esi
call fcn.004219de
add esp, 4
mov edx, dword [esp + 0x30]
push edx
call fcn.004219de
mov al, byte [esp + 0x1b]
add esp, 4
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 8