Function at 0x42b810
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x42d4
call fcn.00592b40
mov eax, dword [0x66a8c4]
xor eax, esp
mov dword [esp + 0x42d0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x1f4
mov dword [esp + 0x34], eax
xor edi, edi
xor ebx, ebx
call fcn.00592396
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x34]
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x42b857
sub eax, edx
sar eax, 1
movzx ecx, ax
push 0x603b5c
push esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x2c], 0x425d20
mov dword [esp + 0x30], 0x425d40
mov dword [esp + 0x54], 0x425d20
mov dword [esp + 0x58], 0x425d40
call fcn.00595172
add esp, 8
mov dword [esp + 0x5c], eax
cmp eax, edi
jne 0x42b8ca
call fcn.00595a1f
cmp dword [eax], edi
je 0x42b8ca
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x42d0]
xor ecx, esp
call fcn.00590c4b
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x54]
mov dword [esp + 0x54], 0x425da0
mov dword [esp + 0x58], 0x425df0
mov dword [esp + 0xb0], 0x425ed0
mov dword [esp + 0xb4], 0x425f30
mov dword [esp + 0xb8], 0x425f40
mov dword [esp + 0xbc], 0x425fa0
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], edi
call fcn.00426620
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x54]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
call fcn.004288c0
add esp, 8
cmp eax, edi
je 0x42b9ae
lea edi, [esp + 0x24]
lea eax, [esp + 0x60]
call fcn.004269c0
jmp 0x42bc4e
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x1c], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x10], edi
cmp dword [esp + 0x7c], edi
jbe 0x42bc3d
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x10]
mov esi, dword [eax + edx*4 + 4]
sub esi, dword [eax + edx*4]
lea ecx, [eax + edx*4 + 4]
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x14], ecx
cmp esi, dword [esp + 0x34]
jbe 0x42ba2e
push ebx
call fcn.0059170a
lea eax, [esi + esi]
add esp, 4
mov dword [esp + 0x34], esi
cmp eax, edi
je 0x42bc8c
push eax
call fcn.00592396
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x42bc3d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + edx*4]
mov ecx, dword [ecx]
sub ecx, eax
cmp ebx, edi
je 0x42ba5f
mov edx, dword [esp + 0xa4]
lea edx, [edx + eax*2]
cmp ecx, edi
jbe 0x42ba5f
mov eax, ebx
sub edx, ebx
nop
mov si, word [edx + eax]
mov word [eax], si
add eax, 2
sub ecx, 1
jne 0x42ba50
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x18]
cmp byte [ecx + eax + 0x19], 0
lea eax, [ecx + eax + 0x19]
mov dword [esp + 0x14], eax
jne 0x42babd
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x60]
push edx
push eax
lea ecx, [esp + 0xd0]
push ecx
lea eax, [esp + 0x84]
call fcn.00428ce0
add esp, 0x24
test eax, eax
jne 0x42bc3d
mov esi, dword [esp + 0x3c]
push 0x1f4
push edi
push esi
call fcn.00591690
mov eax, dword [esp + 0x3c]
mov edx, esi
add esp, 0xc
sub edx, eax
jmp 0x42bae0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x42bae0
xor edx, edx
cmp word [ebx], di
je 0x42bb24
movzx ecx, word [esp + 0x40]
mov eax, ebx
lea ecx, [esi + ecx*2]
cmp word [eax], 0x2f
jne 0x42bb12
mov esi, 0x5c
mov word [eax], si
mov esi, dword [esp + 0x3c]
mov ax, word [eax]
mov word [ecx], ax
inc edx
lea eax, [ebx + edx*2]
add ecx, 2
cmp word [eax], di
jne 0x42bb00
mov ecx, dword [esp + 0x30]
push esi
push ecx
call fcn.0042b690
add esp, 8
test al, al
je 0x42bc08
push esi
call fcn.004c92e0
mov edx, dword [esp + 0x18]
add esp, 4
cmp byte [edx], 0
jne 0x42bc08
lea eax, [esp + 0x20]
push eax
mov eax, esi
call fcn.0042b620
add esp, 4
test eax, eax
je 0x42bbc6
push 0x206
lea edx, [esp + 0x40d6]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x40dc], cx
call fcn.00591690
lea edx, [esp + 0x40dc]
add esp, 0xc
mov eax, esi
sub edx, esi
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x42bb90
lea eax, [esp + 0x40d0]
push eax
call fcn.004c9cd0
lea ecx, [esp + 0x24]
add esp, 4
push ecx
mov eax, esi
call fcn.0042b620
add esp, 4
test eax, eax
jne 0x42bc90
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
cmp eax, edi
je 0x42bbef
mov edx, dword [esp + 0x38]
push esi
push eax
mov eax, dword [esp + 0x24]
add edx, eax
push 1
push edx
call fcn.0059502c
add esp, 0x10
cmp eax, dword [esp + 0x2c]
jne 0x42bc22
cmp esi, edi
je 0x42bc08
push esi
call fcn.00594e4e
add esp, 4
cmp eax, edi
jne 0x42bc97
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x10]
add dword [esp + 0x18], 0x20
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x7c]
jb 0x42b9d0
jmp 0x42bc3d
push esi
call fcn.0059a84f
add esp, 4
push str.can_not_write_output_file
push str._nERROR:__s_n
call fcn.005996db
add esp, 8
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call dword [esp + 0x30]
add esp, 8
lea edi, [esp + 0x24]
lea eax, [esp + 0x60]
call fcn.004269c0
push ebx
call fcn.0059170a
mov eax, dword [esp + 0x60]
add esp, 4
test eax, eax
je 0x42bc75
push eax
call fcn.00594e4e
add esp, 4
mov ecx, dword [esp + 0x42dc]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00590c4b
mov esp, ebp
pop ebp
ret
xor ebx, ebx
jmp 0x42bc3d
push str.can_not_open_output_file
jmp 0x42bc30
push str.can_not_close_output_file
jmp 0x42bc30