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

Disassembly:
mov eax, 0x42c0
call fcn.0047afd0
mov eax, dword [0x536f50]
xor eax, esp
mov dword [esp + 0x42bc], eax
mov eax, dword [esp + 0x42c4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x42d4]
push edi
push 0x1f4
mov dword [esp + 0x2c], eax
xor ebx, ebx
xor edi, edi
call fcn.0047994c
mov ebp, eax
mov eax, dword [esp + 0x2c]
add esp, 4
lea edx, [eax + 2]
jmp 0x41a640
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41a640
sub eax, edx
sar eax, 1
movzx ecx, ax
push 0x4de880
push esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x24], 0x414600
mov dword [esp + 0x28], 0x414100
mov dword [esp + 0x4c], 0x414600
mov dword [esp + 0x50], 0x414100
call fcn.00479bf3
add esp, 8
mov dword [esp + 0x54], eax
cmp eax, ebx
jne 0x41a6a3
call fcn.00479ae6
cmp dword [eax], ebx
je 0x41a6a3
mov eax, 1
jmp 0x41aa05
lea edx, [esp + 0x4c]
mov dword [esp + 0x4c], 0x4146f0
mov dword [esp + 0x50], 0x414740
mov dword [esp + 0xa8], 0x4147f0
mov dword [esp + 0xac], 0x414850
mov dword [esp + 0xb0], 0x414860
mov dword [esp + 0xb4], 0x4148c0
mov dword [esp + 0xb8], edx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xbc], ebx
call fcn.00418e20
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x24]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
call fcn.00419ad0
add esp, 8
cmp eax, ebx
je 0x41a783
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.00415290
jmp 0x41a9d7
xor eax, eax
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x24], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x74], ebx
jbe 0x41a9c9
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x14], ecx
jmp 0x41a7b0
mov ecx, dword [esp + 0x98]
mov esi, dword [ecx + eax*4 + 4]
sub esi, dword [ecx + eax*4]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], ebx
cmp esi, dword [esp + 0x30]
jbe 0x41a7fb
push edi
call fcn.00479a16
lea eax, [esi + esi]
add esp, 4
mov dword [esp + 0x30], esi
cmp eax, ebx
je 0x41aa1e
push eax
call fcn.0047994c
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x41a9c9
mov eax, dword [esp + 0x10]
push edi
push eax
lea edx, [esp + 0x60]
push edx
call fcn.00416990
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp byte [eax + 0x19], bl
jne 0x41a858
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x58]
push ecx
push edx
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x7c]
push ecx
call fcn.00419ee0
add esp, 0x28
test eax, eax
jne 0x41a9c9
push 0x1f4
push ebx
push ebp
call fcn.0047a920
mov esi, dword [esp + 0x34]
mov edx, ebp
add esp, 0xc
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x41a871
xor edx, edx
cmp word [edi], bx
je 0x41a8b6
movzx ecx, word [esp + 0x38]
mov eax, edi
lea ecx, [ebp + ecx*2]
cmp word [eax], 0x2f
jne 0x41a8a0
mov esi, 0x5c
mov word [eax], si
mov ax, word [eax]
mov word [ecx], ax
inc edx
lea eax, [edi + edx*2]
add ecx, 2
cmp word [eax], bx
jne 0x41a892
mov esi, dword [esp + 0x28]
push ebp
push esi
call fcn.0041a370
add esp, 8
test al, al
je 0x41a995
push ebp
call fcn.0043e1f0
mov ecx, dword [esp + 0x18]
add esp, 4
cmp byte [ecx + 0x19], bl
jne 0x41a995
lea edx, [esp + 0x18]
push edx
mov eax, ebp
call fcn.00418db0
add esp, 4
test eax, eax
je 0x41a953
push 0x206
lea ecx, [esp + 0x40ca]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x40d0], ax
call fcn.0047a920
lea edx, [esp + 0x40d0]
add esp, 0xc
mov eax, ebp
sub edx, ebp
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x41a920
lea edx, [esp + 0x40c4]
push edx
call fcn.0043e2b0
lea eax, [esp + 0x1c]
push eax
mov eax, ebp
call fcn.00418db0
add esp, 8
test eax, eax
jne 0x41aa22
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x18]
cmp eax, ebx
je 0x41a97c
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
push esi
push eax
add ecx, edx
push 1
push ecx
call fcn.0047a184
add esp, 0x10
cmp eax, dword [esp + 0x2c]
jne 0x41a9ae
cmp esi, ebx
je 0x41a995
push esi
call fcn.00479c81
add esp, 4
cmp eax, ebx
jne 0x41aa29
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
add dword [esp + 0x14], 0x20
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x74]
jae 0x41a9c9
jmp 0x41a7b0
push esi
call fcn.00479d31
add esp, 4
push str.can_not_write_output_file
push str._nERROR:__s_n
call fcn.0047aabf
add esp, 8
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [esp + 0x28]
add esp, 8
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.00415290
push edi
call fcn.00479a16
mov eax, dword [esp + 0x60]
add esp, 0xc
cmp eax, ebx
je 0x41aa03
push eax
call fcn.00479c81
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x42cc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047a885
add esp, 0x42c0
ret
xor edi, edi
jmp 0x41a9c9
push str.can_not_open_output_file
jmp 0x41a9bc
push str.can_not_close_output_file
jmp 0x41a9bc