Function at 0x42b450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4d58b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [eax + 0x858c]
mov ecx, dword [ebx]
push 0x5c
push ecx
mov dword [ebp - 0x4c], edi
call fcn.00460060
mov esi, dword [edi]
mov dword [ebp - 0x40], eax
xor eax, eax
add esp, 8
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
call fcn.00437a20
mov ecx, dword [edi]
mov dword [ebp - 0x50], edx
mov edx, dword [esi + 0x13c]
mov dword [ebp - 0x54], eax
mov dword [edi + 0x190], edx
mov eax, dword [esi + 0xf4]
mov dword [edi + 0x194], eax
lea eax, [esi + 0x48c]
mov dword [ecx + 0xd4], eax
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x42b4d8
pop edi
pop esi
mov eax, 0x25
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d9fd
mov esp, ebp
pop ebp
ret
cmp byte [eax + 1], 0
je 0x42b4c2
mov edx, dword [esi + 0x8578]
or edx, dword [esi + 0x857c]
mov eax, dword [ebx]
je 0x42b4fe
push 0x4a1964
push eax
call fcn.00461c8b
add esp, 8
jmp 0x42b556
mov ecx, dword [edi]
mov edx, dword [ecx + 0x29c]
push edx
push 0x8301
push eax
call fcn.00477758
add esp, 0xc
test eax, eax
jns 0x42b540
mov ecx, dword [ebx]
push ecx
push 0x4a1948
push esi
call fcn.00424400
add esp, 0xc
pop edi
pop esi
mov eax, 0x17
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d9fd
mov esp, ebp
pop ebp
ret
push eax
call fcn.00470ae7
mov edx, dword [ebx]
push 0x4a1944
push edx
call fcn.00461c8b
add esp, 0xc
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x42b562
mov eax, dword [ebx]
push eax
jmp 0x42b51c
mov eax, dword [esi + 0x188]
mov ecx, dword [esi + 0x18c]
cmp eax, 0xffffffff
jne 0x42b577
cmp ecx, eax
je 0x42b582
push ecx
push eax
push esi
call fcn.00438050
add esp, 0xc
cmp dword [esi + 0x857c], 0
jg 0x42b5e4
jl 0x42b596
cmp dword [esi + 0x8578], 0
jae 0x42b5e4
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x3c]
push ecx
push edx
call fcn.00463e33
add esp, 4
push eax
call fcn.00462697
add esp, 8
test eax, eax
je 0x42b5d2
mov eax, dword [ebp - 0x40]
push eax
call fcn.00461a03
mov ecx, dword [ebx]
push ecx
push 0x4a1928
push esi
call fcn.00424400
add esp, 0x10
jmp 0x42b52a
mov edx, dword [ebp - 0x24]
mov dword [esi + 0x8578], edx
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x857c], eax
lea ecx, [ebp - 0x58]
push ecx
push 0x4000
push edi
call fcn.00420a70
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x42b6d1
mov edx, dword [ebp - 0x58]
test edx, edx
jle 0x42b6bf
mov ecx, dword [esi + 0x8578]
mov eax, dword [esi + 0x857c]
mov ebx, ecx
or ebx, eax
mov edi, edx
je 0x42b63f
xor edi, edi
xor ebx, ebx
cmp edi, eax
jg 0x42b69f
jl 0x42b62d
cmp edx, ecx
ja 0x42b69f
sub ecx, edx
sbb eax, edi
mov dword [esi + 0x8578], ecx
mov dword [esi + 0x857c], eax
xor edi, edi
lea eax, [esi + 0x48c]
mov edx, dword [ebp - 0x40]
push edx
push edi
push 1
push eax
call fcn.0046053d
add esp, 0x10
cmp eax, edi
jne 0x42b6b8
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
add eax, edi
adc ecx, 0
push ecx
push eax
push esi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
call fcn.00437ff0
mov edi, dword [ebp - 0x4c]
push edi
call fcn.00438090
add esp, 0x10
test eax, eax
jne 0x42b6cc
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
push eax
push ecx
push esi
call fcn.00438ee0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x42b5e4
jmp 0x42b6d1
sub edx, ecx
lea eax, [ecx + esi + 0x48c]
mov edi, edx
mov dword [esi + 0x8578], ebx
mov dword [esi + 0x857c], ebx
jmp 0x42b645
mov ebx, 0x37
jmp 0x42b6d1
push edi
call fcn.00438090
add esp, 4
test eax, eax
je 0x42b6d1
mov ebx, 0x2a
mov edx, dword [ebp - 0x40]
push edx
call fcn.00461a03
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0045d9fd
mov esp, ebp
pop ebp
ret