Function at 0x60402070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x38
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x90]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], eax
mov edx, dword [eax + 0x4c]
push edx
call sym.exchndl.dll__bfd_elf_strtab_clear_all_refs
mov edx, dword [ebp + 8]
add esp, 0x10
mov ebx, dword [edx + 0x54]
test ebx, ebx
je 0x6040213f
mov esi, dword [ebx + 0x6c]
cmp dword [ebp - 0x14], 0xff00
je 0x60402700
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x74], ecx
mov edi, dword [ebp + 8]
push eax
inc ecx
push eax
mov dword [ebp - 0x14], ecx
mov eax, dword [esi]
push eax
mov eax, dword [edi + 0x90]
mov eax, dword [eax + 0x4c]
push eax
call sym.exchndl.dll__bfd_elf_strtab_addref
add esp, 0x10
test byte [ebx + 0x10], 4
jne 0x604026c0
mov dword [esi + 0x78], 0
mov eax, dword [esi + 0x60]
test eax, eax
je 0x604026b1
cmp dword [ebp - 0x14], 0xff00
je 0x604026a5
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x7c], ecx
push edi
push edi
inc ecx
mov esi, dword [eax]
mov edi, dword [ebp + 8]
push esi
mov dword [ebp - 0x14], ecx
mov eax, dword [edi + 0x90]
mov ecx, dword [eax + 0x4c]
push ecx
call sym.exchndl.dll__bfd_elf_strtab_addref
add esp, 0x10
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x604020a6
cmp dword [ebp - 0x14], 0xff00
je 0x60402699
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x218], edx
inc edx
mov dword [ebp - 0x14], edx
push edx
push edx
mov edi, dword [eax + 0x94]
push edi
mov eax, dword [ecx + 0x90]
mov esi, dword [eax + 0x4c]
push esi
call sym.exchndl.dll__bfd_elf_strtab_addref
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x10]
add esp, 0x10
mov edx, dword [ebx + 0x90]
mov eax, dword [edi + 0x218]
mov dword [edx + 0x3c], eax
mov ebx, dword [ebx + 0x64]
test ebx, ebx
je 0x60402252
cmp dword [ebp - 0x14], 0xff00
je 0x6040268d
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x214], edx
push ecx
inc edx
push ecx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x64]
push edx
mov eax, dword [ecx + 0x90]
mov eax, dword [eax + 0x4c]
push eax
call sym.exchndl.dll__bfd_elf_strtab_addref
add esp, 0x10
cmp dword [ebp - 0x14], 0xfefe
jbe 0x60402217
cmp dword [ebp - 0x14], 0xff00
je 0x60402681
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [ebx + 0x224], edi
push eax
inc edi
push 0
mov dword [ebp - 0x14], edi
push 0x60402060
mov eax, dword [edx + 0x90]
mov eax, dword [eax + 0x4c]
push eax
call sym.exchndl.dll__bfd_elf_strtab_add
add esp, 0x10
xor edx, edx
mov dword [ebx + 0x1e4], eax
inc eax
je 0x6040243f
cmp dword [ebp - 0x14], 0xff00
je 0x60402675
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp + 8]
mov dword [ecx + 0x21c], ebx
push eax
push eax
inc ebx
mov eax, dword [ecx + 0xc4]
mov dword [ebp - 0x14], ebx
push eax
mov eax, dword [edi + 0x90]
mov eax, dword [eax + 0x4c]
push eax
call sym.exchndl.dll__bfd_elf_strtab_addref
add esp, 0x10
mov edx, dword [ebp + 8]
sub esp, 0xc
mov eax, dword [edx + 0x90]
mov edi, dword [eax + 0x4c]
push edi
call sym.exchndl.dll__bfd_elf_strtab_finalize
mov ecx, dword [ebp + 8]
pop esi
mov eax, dword [ecx + 0x90]
mov ebx, dword [eax + 0x4c]
push ebx
call sym.exchndl.dll__bfd_elf_strtab_size
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
add esp, 0x10
mov dword [ebx + 0xa4], eax
cmp edx, 0xff00
mov eax, dword [edi + 0x90]
mov dword [eax + 0x58], edx
mov eax, dword [edi + 0x90]
mov dword [eax + 0x38], edx
jbe 0x604022b8
mov eax, dword [edi + 0x90]
mov ecx, dword [eax + 0x38]
sub ecx, 0x100
mov dword [eax + 0x38], ecx
mov eax, dword [ebp - 0x14]
shl eax, 2
push edx
push edx
push eax
mov eax, dword [ebp + 8]
push eax
call sym.exchndl.dll_bfd_zalloc
add esp, 0x10
xor edx, edx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x6040243f
push eax
push eax
mov eax, dword [ebp + 8]
push 0x30
push eax
call sym.exchndl.dll_bfd_zalloc
add esp, 0x10
mov ecx, dword [ebp - 0x18]
test eax, eax
mov dword [ecx], eax
je 0x60402662
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x18]
mov eax, dword [ebx + 0x90]
mov dword [eax + 0x40], edi
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x218]
add eax, 0x94
mov dword [edi + edx*4], eax
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x6040236f
mov edx, dword [ebp - 0x10]
mov eax, edx
mov ecx, dword [edx + 0x214]
add eax, 0x64
mov dword [edi + ecx*4], eax
mov eax, dword [ebx + 0x90]
cmp dword [eax + 0x58], 0xff00
jbe 0x60402356
mov ebx, edx
mov edx, dword [edx + 0x224]
mov eax, ebx
add eax, 0x1e4
mov dword [ebx + 0x1fc], ecx
mov dword [edi + edx*4], eax
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov eax, edi
mov edx, dword [edi + 0x21c]
add eax, 0xc4
mov dword [edi + 0x7c], edx
mov dword [ecx + edx*4], eax
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x54]
test ebx, ebx
je 0x6040241b
lea esi, [esi]
mov eax, dword [ebx + 0x6c]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov esi, dword [eax + 0x74]
mov dword [edx + esi*4], eax
mov edx, dword [eax + 0x78]
test edx, edx
je 0x6040239f
mov ecx, dword [ebp - 0x18]
add eax, 0x30
mov dword [ecx + edx*4], eax
mov edi, dword [ebp - 0x28]
mov ecx, dword [edi + 0x7c]
test ecx, ecx
je 0x604023b2
mov eax, dword [edi + 0x60]
mov edi, dword [ebp - 0x18]
mov dword [edi + ecx*4], eax
test edx, edx
je 0x604023c8
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x28]
mov eax, dword [edx + 0x214]
mov dword [edi + 0x4c], esi
mov dword [edi + 0x48], eax
test ecx, ecx
je 0x604023e1
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0x60]
mov eax, dword [ecx + 0x214]
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], esi
mov edi, dword [ebp - 0x28]
mov eax, dword [edi + 4]
cmp eax, 9
je 0x604025c0
cmp eax, 9
ja 0x60402620
cmp eax, 4
je 0x604025c0
cmp eax, 4
ja 0x60402557
cmp eax, 3
je 0x60402467
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x60402380
mov ebx, 1
cmp ebx, dword [ebp - 0x14]
jae 0x6040243a
mov edi, dword [ebp - 0x18]
mov esi, dword [edi + ebx*4]
test esi, esi
jne 0x60402449
mov eax, dword [edi]
mov dword [edi + ebx*4], eax
inc ebx
cmp ebx, dword [ebp - 0x14]
jb 0x60402425
mov edx, 1
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
push edx
push edx
mov edx, dword [ebp + 8]
mov eax, dword [esi]
push eax
mov eax, dword [edx + 0x90]
mov eax, dword [eax + 0x4c]
push eax
call sym.exchndl.dll__bfd_elf_strtab_offset
add esp, 0x10
mov dword [esi], eax
jmp 0x60402434
mov eax, dword [ebx]
mov ecx, 5
mov dword [ebp - 0x1c], eax
mov eax, 0x603fef33
cld
mov esi, dword [ebp - 0x1c]
mov edi, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x60402410
sub esp, 0xc
mov esi, dword [ebp - 0x1c]
push esi
call sub.msvcrt.dll_strlen
mov edx, dword [ebx]
mov ecx, 4
cld
lea esi, [eax + edx - 3]
mov dword [ebp - 0x20], edx
mov eax, 0x60401933
mov edi, eax
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
add esp, 0x10
cmp dl, al
jne 0x60402410
sub esp, 0xc
mov ecx, dword [ebp - 0x20]
push ecx
call sub.msvcrt.dll_strlen
mov esi, eax
lea eax, [eax - 2]
mov dword [esp], eax
call sym.exchndl.dll_bfd_malloc
add esp, 0x10
xor edx, edx
mov dword [ebp - 0x24], eax
test eax, eax
je 0x6040243f
lea eax, [esi - 3]
push edx
mov edi, dword [ebp - 0x24]
push eax
mov eax, dword [ebx]
push eax
push edi
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
mov byte [esi + eax - 3], 0
pop edx
pop ecx
push eax
mov eax, dword [ebp + 8]
push eax
call sym.exchndl.dll_bfd_get_section_by_name
mov esi, eax
pop eax
mov eax, dword [ebp - 0x24]
push eax
call sub.msvcrt.dll_free
add esp, 0x10
test esi, esi
je 0x60402410
mov edx, dword [ebp - 0x28]
mov esi, dword [esi + 0x6c]
mov eax, dword [edx + 0x74]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x60402410
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
call sym.exchndl.dll_bfd_get_arch_size
test eax, eax
js 0x60402552
sar eax, 2
add esp, 0x10
add eax, 4
mov dword [esi + 0x14], eax
jmp 0x60402410
add eax, 3
jmp 0x60402541
cmp eax, 5
je 0x60402591
cmp eax, 6
jne 0x60402410
mov edi, dword [ebp + 8]
push eax
push eax
push 0x604018c5
push edi
call sym.exchndl.dll_bfd_get_section_by_name
add esp, 0x10
test eax, eax
je 0x60402410
mov eax, dword [eax + 0x6c]
mov eax, dword [eax + 0x74]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x18], eax
jmp 0x60402410
mov ecx, dword [ebp + 8]
push esi
push esi
push 0x604018d3
push ecx
call sym.exchndl.dll_bfd_get_section_by_name
add esp, 0x10
test eax, eax
je 0x60402410
mov eax, dword [eax + 0x6c]
mov edi, dword [ebp - 0x28]
mov eax, dword [eax + 0x74]
mov dword [edi + 0x18], eax
jmp 0x60402410
mov ecx, dword [ebp + 8]
push esi
push esi
push 0x604018d3
push ecx
call sym.exchndl.dll_bfd_get_section_by_name
add esp, 0x10
test eax, eax
je 0x604025e3
mov eax, dword [eax + 0x6c]
mov edx, dword [ebp - 0x28]
mov eax, dword [eax + 0x74]
mov dword [edx + 0x18], eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebx]
cmp dword [ecx + 4], 9
je 0x60402619
add eax, 5
mov edi, dword [ebp + 8]
push edx
push edx
push eax
push edi
call sym.exchndl.dll_bfd_get_section_by_name
add esp, 0x10
test eax, eax
je 0x60402410
mov eax, dword [eax + 0x6c]
mov edi, dword [ebp - 0x28]
mov eax, dword [eax + 0x74]
mov dword [edi + 0x1c], eax
jmp 0x60402410
add eax, 4
jmp 0x604025f1
cmp eax, 0x6ffffffe
ja 0x60402652
cmp eax, 0x6ffffffd
jae 0x60402565
cmp eax, 0xb
je 0x60402565
cmp eax, 0x11
jne 0x60402410
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x214]
jmp 0x60402586
cmp eax, 0x6fffffff
jne 0x60402410
jmp 0x60402591
push eax
push eax
mov eax, dword [ebp + 8]
push ecx
push eax
call sym.exchndl.dll_bfd_release
xor edx, edx
jmp 0x6040243f
mov dword [ebp - 0x14], 0x10000
jmp 0x60402224
mov dword [ebp - 0x14], 0x10000
jmp 0x604021db
mov dword [ebp - 0x14], 0x10000
jmp 0x6040219a
mov dword [ebp - 0x14], 0x10000
jmp 0x6040213f
mov dword [ebp - 0x14], 0x10000
jmp 0x60402103
mov dword [esi + 0x7c], 0
jmp 0x60402127
cmp dword [ebp - 0x14], 0xff00
je 0x604026f3
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [esi + 0x78], eax
inc eax
mov dword [ebp - 0x14], eax
push eax
push eax
mov eax, dword [esi + 0x30]
push eax
mov eax, dword [edx + 0x90]
mov eax, dword [eax + 0x4c]
push eax
call sym.exchndl.dll__bfd_elf_strtab_addref
add esp, 0x10
jmp 0x604020eb
mov dword [ebp - 0x14], 0x10000
jmp 0x604026c9
mov dword [ebp - 0x14], 0x10000
jmp 0x604020b6