Function at 0x420070
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.004c45f0
mov eax, dword [0x56f8f4]
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.004cb8c1
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 0x4200b7
sub eax, edx
sar eax, 1
movzx ecx, ax
push 0x538ac0
push esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x2c], 0x41a400
mov dword [esp + 0x30], 0x41a420
mov dword [esp + 0x54], 0x41a400
mov dword [esp + 0x58], 0x41a420
call fcn.004cd5e3
add esp, 8
mov dword [esp + 0x5c], eax
cmp eax, edi
jne 0x42012a
call fcn.004c7cbf
cmp dword [eax], edi
je 0x42012a
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x42d0]
xor ecx, esp
call fcn.004c3202
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x54]
mov dword [esp + 0x54], 0x41a480
mov dword [esp + 0x58], 0x41a4d0
mov dword [esp + 0xb0], 0x41a5b0
mov dword [esp + 0xb4], 0x41a610
mov dword [esp + 0xb8], 0x41a620
mov dword [esp + 0xbc], 0x41a680
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], edi
call fcn.0041acf0
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.0041d0d0
add esp, 8
cmp eax, edi
je 0x42020e
lea edi, [esp + 0x24]
lea eax, [esp + 0x60]
call fcn.0041b090
jmp 0x4204ae
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 0x42049d
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 0x42028e
push ebx
call fcn.004c3aa1
lea eax, [esi + esi]
add esp, 4
mov dword [esp + 0x34], esi
cmp eax, edi
je 0x4204ec
push eax
call fcn.004cb8c1
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x42049d
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 0x4202bf
mov edx, dword [esp + 0xa4]
lea edx, [edx + eax*2]
cmp ecx, edi
jbe 0x4202bf
mov eax, ebx
sub edx, ebx
nop
mov si, word [edx + eax]
mov word [eax], si
add eax, 2
sub ecx, 1
jne 0x4202b0
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 0x42031d
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.0041d4f0
add esp, 0x24
test eax, eax
jne 0x42049d
mov esi, dword [esp + 0x3c]
push 0x1f4
push edi
push esi
call fcn.004c3b30
mov eax, dword [esp + 0x3c]
mov edx, esi
add esp, 0xc
sub edx, eax
jmp 0x420340
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x420340
xor edx, edx
cmp word [ebx], di
je 0x420384
movzx ecx, word [esp + 0x40]
mov eax, ebx
lea ecx, [esi + ecx*2]
cmp word [eax], 0x2f
jne 0x420372
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 0x420360
mov ecx, dword [esp + 0x30]
push esi
push ecx
call fcn.0041fe90
add esp, 8
test al, al
je 0x420468
push esi
call fcn.0042d588
mov edx, dword [esp + 0x18]
add esp, 4
cmp byte [edx], 0
jne 0x420468
lea eax, [esp + 0x20]
push eax
mov eax, esi
call fcn.0041fe20
add esp, 4
test eax, eax
je 0x420426
push 0x206
lea edx, [esp + 0x40d6]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x40dc], cx
call fcn.004c3b30
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 0x4203f0
lea eax, [esp + 0x40d0]
push eax
call fcn.0042d6ca
lea ecx, [esp + 0x24]
add esp, 4
push ecx
mov eax, esi
call fcn.0041fe20
add esp, 4
test eax, eax
jne 0x4204f0
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
cmp eax, edi
je 0x42044f
mov edx, dword [esp + 0x38]
push esi
push eax
mov eax, dword [esp + 0x24]
add edx, eax
push 1
push edx
call fcn.004c6f97
add esp, 0x10
cmp eax, dword [esp + 0x2c]
jne 0x420482
cmp esi, edi
je 0x420468
push esi
call fcn.004c7090
add esp, 4
cmp eax, edi
jne 0x4204f7
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 0x420230
jmp 0x42049d
push esi
call fcn.004cd4eb
add esp, 4
push str.can_not_write_output_file
push str._nERROR:__s_n
call fcn.004cac13
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.0041b090
push ebx
call fcn.004c3aa1
mov eax, dword [esp + 0x60]
add esp, 4
test eax, eax
je 0x4204d5
push eax
call fcn.004c7090
add esp, 4
mov ecx, dword [esp + 0x42dc]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004c3202
mov esp, ebp
pop ebp
ret
xor ebx, ebx
jmp 0x42049d
push str.can_not_open_output_file
jmp 0x420490
push str.can_not_close_output_file
jmp 0x420490