Function at 0x603ea860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x1c]
mov eax, dword [edx + 0x3c]
shl eax, 4
lea eax, [eax + esi]
mov dword [ebp - 0x34], eax
cmp esi, eax
jae 0x603ea933
mov ebx, dword [esi + 4]
cmp ebx, 0xffffffff
je 0x603eabd5
test ebx, ebx
js 0x603eabbc
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x90]
cmp ebx, dword [eax + 0x14]
jae 0x603eabbc
mov eax, dword [eax + 0x50]
mov edx, dword [ebp + 0x20]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x38], eax
lea eax, [ebx + ebx*4]
lea eax, [edx + eax*4]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x603eabb0
cmp word [eax + 0xc], 0
je 0x603eabb0
mov eax, dword [eax + 8]
neg eax
mov dword [ebp - 0x2c], eax
lea esi, [esi]
mov ecx, dword [ebp + 0x10]
push eax
push eax
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0x178]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp + 0x14]
push esi
push eax
push ecx
call dword [edx + 0xa8]
add esp, 0x20
xor edx, edx
mov edi, eax
test eax, eax
je 0x603ea938
mov eax, dword [eax + 0x10]
test eax, eax
je 0x603ea960
mov eax, dword [edi + 0x30]
test eax, eax
je 0x603ea960
mov eax, dword [ebp + 0xc]
test byte [eax], 1
je 0x603ea942
add esi, 0x10
cmp esi, dword [ebp - 0x34]
jb 0x603ea883
mov edx, 1
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x603ea960
mov edx, dword [ebp - 0x3c]
cmp word [edx + 0xc], 0
je 0x603ea960
mov eax, dword [edx + 8]
mov edx, dword [ebp - 0x2c]
add edx, eax
mov dword [ebp - 0x2c], edx
mov esi, esi
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], 0
test eax, eax
je 0x603eab50
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0xc]
lea eax, [edx - 3]
cmp eax, 1
ja 0x603eab00
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x14]
mov eax, dword [edx + 0x2c]
mov eax, dword [eax + 0x18]
add eax, ecx
mov ecx, dword [edx + 0x28]
add eax, ecx
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x603eaa17
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x603eaa17
mov edx, dword [ebp + 8]
push eax
push eax
mov eax, dword [edx + 0x90]
push edi
push edx
call dword [eax + 0x138]
add esp, 0x10
test eax, eax
je 0x603eaa17
mov ecx, dword [ebp + 0x14]
mov edx, dword [esi]
mov eax, dword [ecx + 0x18]
sub edx, eax
mov eax, dword [ecx + 0x28]
add edx, eax
mov eax, dword [ecx + 0x2c]
mov ecx, dword [eax + 0x18]
add edx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ecx + 0x90]
mov ecx, dword [eax + 0x4c]
test ecx, ecx
je 0x603ea9f7
mov ecx, dword [eax + 0x6c]
sub edx, ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
push eax
lea eax, [ebp - 0x30]
push 4
push 1
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp eax, 4
jne 0x603eaaf0
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [esi]
mov ecx, dword [edx + 0x18]
sub eax, ecx
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x10]
push edx
push eax
push edi
call sym.exchndl.dll__bfd_final_link_relocate
add esp, 0x20
cmp eax, 1
je 0x603eaa80
cmp eax, 1
jb 0x603ea927
cmp eax, 2
jne 0x603eabe5
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ecx]
push eax
mov edi, dword [esi]
push edi
push esi
push ebx
call sym.exchndl.dll_bfd_archive_filename
pop edx
pop ecx
push eax
push 0x603ea7b0
call dword [sym.exchndl.dll__bfd_error_handler]
xor edx, edx
jmp 0x603ea938
mov ecx, 0x603ea7dc
inc ebx
je 0x603eaa95
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x603eaaca
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebx + 4]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
push eax
mov eax, dword [edx + 0x10]
mov edx, dword [esi]
sub edx, dword [ebx + 0x18]
push edx
push ebx
mov ebx, dword [ebp + 0x10]
push ebx
push 0
mov edx, dword [edi + 0x20]
mov edi, dword [ebp + 0xc]
push edx
push ecx
push edi
call dword [eax + 0x1c]
add esp, 0x20
xor edx, edx
test eax, eax
jne 0x603ea927
jmp 0x603ea938
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x28]
push ebx
push eax
push ecx
push edx
call sym.exchndl.dll__bfd_coff_internal_syment_name
xor edx, edx
add esp, 0x10
mov ecx, eax
test eax, eax
jne 0x603eaa95
jmp 0x603ea938
sub esp, 0xc
push 1
call sym.exchndl.dll_bfd_set_error
jmp 0x603eaa75
cmp edx, 2
je 0x603ea99a
mov eax, dword [ebp + 0xc]
test byte [eax], 1
jne 0x603ea99a
mov ecx, dword [ebp + 0x14]
push edx
push edx
mov eax, dword [eax + 0x10]
push 1
mov edx, dword [esi]
sub edx, dword [ecx + 0x18]
push edx
mov edx, dword [ebp + 0x10]
push ecx
push edx
mov edx, dword [ebp - 0x38]
mov ecx, dword [edx + 4]
mov edx, dword [ebp + 0xc]
push ecx
push edx
call dword [eax + 0x18]
xor edx, edx
add esp, 0x20
test eax, eax
jne 0x603ea99a
jmp 0x603ea938
mov ecx, dword [ebp - 0x38]
cmp ebx, 0xffffffff
mov dword [ebp - 0x40], ecx
je 0x603ea99a
mov eax, dword [ebp + 0x24]
mov edx, dword [eax + ebx*4]
mov eax, dword [edx + 0x2c]
mov ecx, dword [edx + 0x28]
mov dword [ebp - 0x40], ecx
mov ecx, dword [eax + 0x18]
mov eax, dword [ebp - 0x40]
add eax, ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov eax, dword [eax + 8]
add ecx, eax
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x90]
mov eax, dword [eax + 0x4c]
test eax, eax
jne 0x603ea99a
mov ecx, dword [ebp - 0x40]
mov eax, dword [edx + 0x18]
sub ecx, eax
mov dword [ebp - 0x40], ecx
jmp 0x603ea99a
mov dword [ebp - 0x2c], 0
jmp 0x603ea8e0
push edi
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push ebx
call sym.exchndl.dll_bfd_archive_filename
pop edx
pop ecx
push eax
push 0x603ea7f0
jmp 0x603eaa6f
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
jmp 0x603eabb0
push eax
push 0x603ea830
push 0xbd9
push 0x603e6800
call sym.exchndl.dll__bfd_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop