Function at 0x603efd90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x90]
add edx, 0x6c
mov dword [ebp - 0x54], edx
mov esi, dword [edx + 0x44]
test esi, esi
jne 0x603efdba
mov edi, dword [edx + 0x48]
test edi, edi
je 0x603f0236
mov eax, dword [ebp - 0x54]
mov edx, dword [eax]
add esi, edx
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 0x54]
test ebx, ebx
je 0x603efdf1
nop
lea esi, [esi]
test byte [ebx + 0x14], 2
jne 0x603f0221
mov eax, dword [ebx + 0x18]
mov edi, dword [ebx + 0x24]
cmp esi, eax
jb 0x603efdea
add eax, edi
cmp esi, eax
jb 0x603efe12
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x603efdd0
mov eax, dword [ebp + 0xc]
push eax
push 0x4c
push 1
push 0x603efab0
call sub.msvcrt.dll_fwrite
mov edx, 1
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
test ebx, ebx
je 0x603efdf1
push esi
mov eax, dword [ebx]
push eax
mov eax, dword [ebp + 0xc]
push 0x603efb10
push eax
call fcn.6041d180
mov eax, dword [ebx + 0x18]
sub esi, eax
sub edi, esi
mov dword [esp], edi
call sym.exchndl.dll_bfd_malloc
add esp, 0x10
xor edx, edx
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x603efe08
sub esp, 0xc
mov ecx, dword [ebp + 8]
push edi
push esi
push eax
push ebx
push ecx
call sym.exchndl.dll_bfd_get_section_contents
add esp, 0x20
xor edx, edx
test eax, eax
je 0x603efe08
mov edx, dword [ebp + 8]
sub esp, 0xc
mov eax, dword [edx + 4]
mov edx, dword [ebp - 0x4c]
push edx
call dword [eax + 0x28]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x4c]
add eax, 4
mov dword [esp], eax
call dword [edx + 0x28]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x4c]
add eax, 8
mov dword [esp], eax
call dword [edx + 0x34]
mov word [ebp - 0x40], ax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x4c]
add eax, 0xa
mov dword [esp], eax
call dword [edx + 0x34]
mov word [ebp - 0x3e], ax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x4c]
add eax, 0xc
mov dword [esp], eax
call dword [edx + 0x28]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x4c]
add eax, 0x10
mov dword [esp], eax
call dword [edx + 0x28]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x4c]
add eax, 0x14
mov dword [esp], eax
call dword [edx + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x4c]
add eax, 0x18
mov dword [esp], eax
call dword [edx + 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x4c]
add eax, 0x1c
mov dword [esp], eax
call dword [edx + 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x4c]
add eax, 0x20
mov dword [esp], eax
call dword [edx + 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x4c]
add eax, 0x24
mov dword [esp], eax
call dword [edx + 0x28]
add esp, 0xc
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x24], eax
mov ecx, dword [edx]
mov eax, dword [ebx + 0x18]
sub eax, ecx
mov edx, dword [ebx]
add eax, esi
push edx
mov dword [ebp - 0x50], eax
push 0x603efb50
mov eax, dword [ebp + 0xc]
push eax
call fcn.6041d180
add esp, 0xc
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp + 0xc]
push 0x603efb87
push eax
call fcn.6041d180
mov eax, dword [ebp - 0x44]
add esp, 0xc
push eax
mov eax, dword [ebp + 0xc]
push 0x603efb9c
push eax
call fcn.6041d180
movsx eax, word [ebp - 0x3e]
push eax
movsx eax, word [ebp - 0x40]
push eax
mov eax, dword [ebp + 0xc]
push 0x603efbb3
push eax
call fcn.6041d180
mov esi, dword [ebp + 0xc]
add esp, 0x20
push esi
push 9
push 1
push 0x603efbc9
call sub.msvcrt.dll_fwrite
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov ebx, dword [ebp - 0x3c]
push ebx
push 0x603efbd3
push ecx
call fcn.6041d180
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x4c]
add esp, 0xc
add eax, edx
mov esi, dword [ebp - 0x50]
mov ebx, dword [ebp + 0xc]
sub eax, esi
push eax
push 0x603efbd9
push ebx
call fcn.6041d180
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x38]
push ecx
push 0x603efbde
push edx
call fcn.6041d180
mov eax, dword [ebp + 0xc]
push eax
push 0xb
push 1
push 0x603efbf3
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp - 0x34]
add esp, 0x1c
push eax
mov eax, dword [ebp + 0xc]
push 0x603efc10
push eax
call fcn.6041d180
mov eax, dword [ebp - 0x30]
add esp, 0xc
push eax
mov eax, dword [ebp + 0xc]
push 0x603efc30
push eax
call fcn.6041d180
mov eax, dword [ebp + 0xc]
push eax
push 0x10
push 1
push 0x603efc55
call sub.msvcrt.dll_fwrite
mov esi, dword [ebp + 0xc]
add esp, 0x20
push esi
push 0x18
push 1
push 0x603efc66
call sub.msvcrt.dll_fwrite
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov ebx, dword [ebp - 0x2c]
push ebx
push 0x603efbd3
push ecx
call fcn.6041d180
pop eax
mov eax, dword [ebp + 0xc]
pop edx
push eax
push 0xa
call sub.msvcrt.dll_fputc
mov esi, dword [ebp + 0xc]
push esi
push 0x16
push 1
push 0x603efc7f
call sub.msvcrt.dll_fwrite
mov ecx, dword [ebp + 0xc]
add esp, 0x1c
mov ebx, dword [ebp - 0x28]
push ebx
push 0x603efbd3
push ecx
call fcn.6041d180
pop eax
mov eax, dword [ebp + 0xc]
pop edx
push eax
push 0xa
call sub.msvcrt.dll_fputc
mov esi, dword [ebp + 0xc]
push esi
push 0x12
push 1
push 0x603efc96
call sub.msvcrt.dll_fwrite
mov ecx, dword [ebp + 0xc]
add esp, 0x1c
mov ebx, dword [ebp - 0x24]
push ebx
push 0x603efbd3
push ecx
call fcn.6041d180
pop eax
mov eax, dword [ebp + 0xc]
pop edx
push eax
push 0xa
call sub.msvcrt.dll_fputc
mov ebx, dword [ebp + 0xc]
add esp, 0xc
mov esi, dword [ebp - 0x38]
push esi
xor esi, esi
push 0x603efcb0
push ebx
call fcn.6041d180
add esp, 0x10
cmp esi, dword [ebp - 0x34]
jb 0x603f01a1
mov esi, dword [ebp + 0xc]
push esi
xor esi, esi
push 0x1e
push 1
push 0x603efcf0
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp esi, dword [ebp - 0x30]
jb 0x603f0143
sub esp, 0xc
mov eax, dword [ebp - 0x4c]
push eax
call sub.msvcrt.dll_free
jmp 0x603efe03
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x28]
sub esp, 0xc
mov ecx, dword [ebp - 0x50]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x4c]
add eax, ebx
lea eax, [eax + esi*4]
sub eax, ecx
push eax
call dword [edx + 0x28]
mov ebx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x24]
add ebx, eax
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x50]
sub ebx, eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x4c]
add eax, edi
lea eax, [eax + esi*2]
inc esi
sub eax, ecx
mov dword [esp], eax
call dword [edx + 0x34]
push ebx
push eax
mov eax, dword [ebp + 0xc]
push 0x603efd0f
push eax
call fcn.6041d180
add esp, 0x20
cmp esi, dword [ebp - 0x30]
jb 0x603f0143
jmp 0x603f0132
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
sub esp, 0xc
mov ebx, dword [ebp - 0x50]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x4c]
add eax, ecx
lea eax, [eax + esi*4]
sub eax, ebx
push eax
call dword [edx + 0x28]
add esp, 0x10
mov edx, eax
test eax, eax
jne 0x603f01d2
inc esi
cmp esi, dword [ebp - 0x34]
jb 0x603f01a1
jmp 0x603f0116
mov ecx, dword [ebp - 0x50]
sub eax, ecx
cmp eax, edi
ja 0x603f0209
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
add eax, edx
sub eax, ecx
push ebx
mov ebx, dword [ebp - 0x38]
push eax
mov eax, esi
push 0x603efd1b
add eax, ebx
push edx
push eax
push esi
push 0x603efd30
mov eax, dword [ebp + 0xc]
push eax
call fcn.6041d180
add esp, 0x20
jmp 0x603f01c7
mov eax, esi
push ecx
push ecx
push 0x603efd54
push edx
mov edx, dword [ebp - 0x38]
add eax, edx
push eax
push esi
push 0x603efd5f
jmp 0x603f01fb
push eax
push 0x603efd7d
push 0x545
push 0x603ef5b6
call sym.exchndl.dll__bfd_abort
push ebx
push ebx
push 0x603ee4d7
push eax
call sym.exchndl.dll_bfd_get_section_by_name
add esp, 0x10
mov edx, 1
mov ebx, eax
test eax, eax
je 0x603efe08
mov esi, dword [eax + 0x18]
test byte [eax + 0x14], 2
jne 0x603f0273
mov edi, dword [eax + 0x24]
mov edx, 1
test edi, edi
je 0x603efe08
jmp 0x603efe16
push ecx
push 0x603efd7d
push 0x53b
jmp 0x603f022c