Function at 0x419590
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x54
mov eax, dword [0x456130]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
mov ebp, dword [esp + 0x60]
mov eax, dword [ebp]
push esi
push edi
mov edi, dword [eax + 0x86bc]
mov ecx, dword [edi]
push 0x5c
push ecx
call fcn.00433200
mov esi, dword [ebp]
mov ebx, eax
xor eax, eax
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call fcn.004130d0
mov ecx, dword [ebp]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0x18c]
mov dword [esp + 0x1c], eax
mov dword [ebp + 0x284], edx
mov eax, dword [esi + 0x13c]
mov dword [ebp + 0x288], eax
lea eax, [esi + 0x594]
mov dword [ecx + 0x114], eax
test ebx, ebx
jne 0x41961b
pop edi
pop esi
pop ebp
mov eax, 0x25
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00431acd
add esp, 0x54
ret
cmp byte [ebx + 1], 0
je 0x419603
mov edx, dword [esi + 0x86a8]
or edx, dword [esi + 0x86ac]
mov eax, dword [edi]
je 0x419647
push 0x44ba58
push eax
call fcn.00434726
mov ebx, eax
add esp, 8
mov dword [esp + 0x18], ebx
jmp 0x4196a8
mov ecx, dword [ebp]
mov edx, dword [ecx + 0x36c]
push edx
push 0x8301
push eax
call fcn.00440d0b
add esp, 0xc
test eax, eax
jns 0x41968c
mov ecx, dword [edi]
push ecx
push str.Cant_open__s_for_writing
push esi
call fcn.0040e9d0
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x17
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00431acd
add esp, 0x54
ret
push eax
call fcn.00438526
mov edx, dword [edi]
push 0x44ba38
push edx
call fcn.00434726
add esp, 0xc
mov ebx, eax
mov dword [esp + 0x18], eax
test ebx, ebx
jne 0x4196b1
mov eax, dword [edi]
push eax
jmp 0x419666
mov eax, dword [esi + 0x1e8]
mov ecx, dword [esi + 0x1ec]
cmp eax, 0xffffffff
jne 0x4196c6
cmp ecx, eax
je 0x4196d1
push ecx
push eax
push esi
call fcn.00426770
add esp, 0xc
cmp dword [esi + 0x86ac], 0
jg 0x419730
jl 0x4196e5
cmp dword [esi + 0x86a8], 0
jae 0x419730
lea ecx, [esp + 0x28]
push ecx
push ebx
call fcn.004385ea
add esp, 4
push eax
call fcn.0043503d
add esp, 8
test eax, eax
je 0x41971c
push ebx
call fcn.00431d38
mov edx, dword [edi]
push edx
push str.Cant_get_the_size_of__s
push esi
call fcn.0040e9d0
add esp, 0x10
jmp 0x419674
mov eax, dword [esp + 0x40]
mov dword [esi + 0x86a8], eax
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x86ac], ecx
lea edx, [esp + 0x24]
push edx
push 0x4000
push ebp
call fcn.0040a1d0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x419823
mov edx, dword [esp + 0x24]
test edx, edx
jle 0x419811
mov ecx, dword [esi + 0x86a8]
mov eax, dword [esi + 0x86ac]
mov ebx, ecx
or ebx, eax
mov edi, edx
je 0x41978d
xor edi, edi
xor ebx, ebx
cmp edi, eax
jg 0x4197f1
jl 0x41977b
cmp edx, ecx
ja 0x4197f1
sub ecx, edx
sbb eax, edi
mov dword [esi + 0x86a8], ecx
mov dword [esi + 0x86ac], eax
xor edi, edi
lea eax, [esi + 0x594]
mov ebx, dword [esp + 0x18]
push ebx
push edi
push 1
push eax
call fcn.00431f03
add esp, 0x10
cmp eax, edi
jne 0x41980a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, edi
adc ecx, 0
push ecx
push eax
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call fcn.00426710
push ebp
call fcn.004267b0
add esp, 0x10
test eax, eax
jne 0x41981e
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push esi
call fcn.004284d0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x419730
jmp 0x419823
sub edx, ecx
lea eax, [ecx + esi + 0x594]
mov edi, edx
mov dword [esi + 0x86a8], ebx
mov dword [esi + 0x86ac], ebx
jmp 0x419793
mov edi, 0x37
jmp 0x419823
push ebp
call fcn.004267b0
add esp, 4
test eax, eax
je 0x419823
mov edi, 0x2a
push ebx
call fcn.00431d38
mov ecx, dword [esp + 0x64]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431acd
add esp, 0x54
ret