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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xbc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
test ecx, ecx
jne 0x540534
mov edx, dword [eax + 0x84]
test edx, edx
je 0x540b8d
lea eax, [ebp - 0x30]
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004e2830
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll__setjmp3
call fcn.004e2b90
test eax, eax
je 0x540717
call fcn.004e2b80
test eax, eax
je 0x540557
mov edx, dword [ebp + 8]
mov dword [esp], edx
call fcn.004bca90
mov dword [ebp - 0x7c], eax
mov eax, dword [0x85ee58]
test eax, eax
jne 0x540b28
mov edx, dword [0x85ee48]
mov eax, dword [ebp + 8]
mov dword [edx + 0x11c], 1
call fcn.00524a10
mov dword [esp + 4], 0
mov dword [esp], fcn.005286c0
call fcn.0048e4f0
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 8]
call fcn.00528f80
test eax, eax
jne 0x54072d
mov eax, dword [ebp + 8]
lea ebx, [ebp - 0x5c]
call fcn.00527380
mov dword [esp + 0x10], fcn.005c2f40
mov dword [esp + 0xc], fcn.005c2e50
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.0063ffc0
mov dword [esp], ebx
call fcn.0059a050
mov dword [esp], ebx
call fcn.0046f650
mov edi, dword [ebp + 8]
mov dword [edi + 0x1c], eax
mov dword [esp + 4], edi
mov dword [esp], 0x523d70
call fcn.0048e4f0
mov dword [ebp - 0x84], eax
mov eax, dword [0x85ee48]
mov eax, dword [eax + 0xcc]
test eax, eax
jle 0x5406a8
xor ebx, ebx
mov eax, ebx
add ebx, 1
call fcn.00526930
xor edx, edx
call fcn.00532b20
mov eax, dword [0x85ee48]
mov eax, dword [eax + 0xcc]
cmp ebx, eax
jl 0x540637
test eax, eax
mov dword [ebp - 0x6c], eax
jle 0x5406a8
xor ebx, ebx
mov eax, ebx
call fcn.00526930
mov edi, dword [eax + 0x18]
test edi, edi
je 0x5406a0
mov ecx, dword [edi + 0x20]
test ecx, ecx
jle 0x5406a0
mov esi, dword [edi + 0x1c]
xor eax, eax
jmp 0x540687
add eax, 1
cmp eax, ecx
je 0x5406a0
mov edx, dword [esi + eax*4]
cmp dword [edx + 0x24], 0
jne 0x540680
add eax, 1
cmp eax, ecx
mov dword [edx + 0x24], edi
jne 0x540687
lea esi, [esi]
add ebx, 1
cmp ebx, dword [ebp - 0x6c]
jne 0x540660
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
add eax, 0x3c
mov dword [esp + 4], eax
mov eax, dword [edx + 0x1c]
mov dword [esp], eax
call fcn.0046f620
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call fcn.0048e670
mov eax, dword [ebp - 0x80]
mov dword [esp], eax
call fcn.0048e650
mov eax, dword [0x85ee58]
test eax, eax
je 0x540707
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [esp + 4], str.Done_building_psymtabs_of__s_n
mov dword [esp + 8], eax
mov eax, dword [0x8663bc]
mov dword [esp], eax
call fcn.0059ac60
mov eax, dword [ebp - 0x7c]
mov dword [esp], eax
call fcn.0048e670
jmp 0x540564
mov eax, dword [ebp - 0x30]
test eax, eax
js 0x540b50
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [0x85ee48]
mov edi, dword [esi + 0xc4]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x88], edi
mov edi, dword [esi + 0xe0]
test edi, edi
jne 0x540bf8
mov esi, dword [ebp - 0x78]
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x540b4c
mov esi, dword [0x85ee58]
test esi, esi
jne 0x540bca
shl eax, 3
mov dword [esp], eax
call fcn.005c2e50
mov dword [ebp - 0x70], eax
mov eax, dword [0x85ee48]
mov ebx, dword [eax + 0xd0]
test ebx, ebx
jle 0x540810
xor ebx, ebx
mov edx, dword [eax + 0xd4]
mov edi, dword [ebp - 0x70]
mov edx, dword [edx + ebx*4]
mov esi, dword [edx + 0xc]
mov dword [edi + ebx*8], edx
mov edi, dword [edx]
mov eax, dword [eax + 0xc4]
mov edx, dword [esi]
mov edx, dword [edx + 0x94]
mov dword [ebp - 0x74], edx
mov edx, esi
call fcn.00524a10
lea ecx, [ebp - 0x1c]
add edi, dword [esi + 4]
mov esi, dword [ebp - 0x74]
mov edx, edi
add esi, 8
mov eax, esi
call fcn.00526570
mov eax, dword [ebp - 0x1c]
xor edx, edx
lea ecx, [edi + eax + 2]
mov edi, dword [ebp - 0x74]
cmp eax, 4
setne dl
lea edx, [edx*4 + 4]
mov eax, dword [edi + 4]
mov dword [esp], edx
mov edx, esi
call fcn.00526bf0
mov edx, dword [ebp - 0x70]
mov dword [edx + ebx*8 + 4], eax
mov eax, dword [0x85ee48]
add ebx, 1
cmp ebx, dword [eax + 0xd0]
jl 0x540792
mov eax, dword [ebp - 0x70]
mov dword [esp], fcn.005c2f40
mov dword [esp + 4], eax
call fcn.0048e4f0
mov dword [esp + 0xc], 0x523d20
mov dword [esp + 8], 8
mov dword [ebp - 0x90], eax
mov eax, dword [0x85ee48]
mov eax, dword [eax + 0xd0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call sub.msvcrt.dll_qsort
lea edx, [ebp - 0x24]
mov dword [esp + 4], edx
mov dword [ebp - 0x24], 0
mov dword [esp], 0x5249c0
call fcn.0048e4f0
mov edx, dword [0x85ee48]
mov ecx, dword [edx + 0xd0]
test ecx, ecx
jle 0x540932
mov eax, dword [ebp - 0x70]
mov edi, 0xffffffff
xor esi, esi
mov dword [ebp - 0x8c], eax
mov ebx, eax
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x5408cd
cmp dword [ebx + 4], edi
je 0x5408fa
lea eax, [edx + 4]
mov dword [esp], eax
mov dword [ebp - 0x98], edx
mov dword [esp + 4], 0
call fcn.00640310
mov edx, dword [ebp - 0x98]
mov dword [esp], edx
call fcn.005c2f40
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x70]
mov eax, ebx
sub eax, dword [ebp - 0x8c]
mov edi, dword [edx + eax + 4]
mov eax, dword [0x85ee48]
mov edx, edi
add eax, 0x10
call fcn.00524e00
mov ecx, dword [ebp - 0x78]
add dword [ecx + 0xe8], 1
mov edx, eax
mov dword [ebp - 0x24], eax
mov dword [esp + 8], 0
xor ecx, ecx
add esi, 1
mov dword [esp + 4], 0x5397a0
mov dword [esp], 0
mov eax, dword [ebx]
add ebx, 8
call fcn.0052c900
mov edx, dword [0x85ee48]
cmp esi, dword [edx + 0xd0]
jl 0x540893
mov eax, dword [edx + 0xe0]
mov dword [ebp - 0x98], edx
mov dword [esp], eax
call fcn.00649400
mov edx, dword [ebp - 0x98]
mov edi, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x88]
mov ebx, dword [0x85ee48]
mov dword [edx + 0xd8], eax
mov edx, dword [edi + 0x4c]
mov eax, dword [ecx + 0x48]
mov esi, dword [ebx + 0xd8]
mov ecx, edx
mov edi, edx
sub ecx, eax
shl esi, 2
cmp esi, ecx
jg 0x540ba2
add eax, esi
mov esi, dword [ebp - 0x88]
mov ecx, dword [esi + 0x44]
mov dword [esi + 0x48], eax
cmp eax, ecx
je 0x540bef
mov esi, dword [ebp - 0x88]
mov esi, dword [esi + 0x54]
add eax, esi
mov dword [ebp - 0x9c], esi
not esi
and eax, esi
mov esi, dword [ebp - 0x88]
mov dword [esi + 0x48], eax
mov esi, dword [esi + 0x40]
mov dword [ebp - 0xa0], esi
mov esi, eax
sub edi, dword [ebp - 0xa0]
sub esi, dword [ebp - 0xa0]
cmp esi, edi
jg 0x540b7d
mov esi, dword [ebp - 0x88]
lea edi, [ebp - 0x20]
mov dword [esi + 0x44], eax
mov eax, dword [0x85ee48]
mov dword [ebx + 0xdc], ecx
mov edx, dword [eax + 0xdc]
mov dword [esp + 8], edi
mov dword [esp + 4], 0x523d50
mov eax, dword [eax + 0xe0]
mov dword [ebp - 0x20], edx
mov dword [esp], eax
call fcn.00649c80
mov edx, dword [0x85ee48]
mov eax, dword [ebp - 0x20]
sub eax, dword [edx + 0xdc]
sar eax, 2
cmp eax, dword [edx + 0xd8]
jne 0x540c24
mov eax, dword [ebp - 0x90]
mov dword [esp], eax
call fcn.0048e650
mov edx, dword [0x85ee58]
test edx, edx
je 0x540b00
mov eax, dword [0x8663bc]
mov dword [esp + 4], str.Done_building_type_unit_groups:_n
mov dword [esp], eax
call fcn.0059ac60
mov eax, dword [0x85ee48]
mov eax, dword [eax + 0xd0]
mov dword [esp + 4], str.___d_TUs_n
mov dword [esp + 8], eax
mov eax, dword [0x8663bc]
mov dword [esp], eax
call fcn.0059ac60
mov esi, dword [ebp - 0x78]
mov eax, dword [esi + 0xe8]
mov dword [esp + 4], str.___d_uniq_abbrev_tables_n
mov dword [esp + 8], eax
mov eax, dword [0x8663bc]
mov dword [esp], eax
call fcn.0059ac60
mov eax, dword [esi + 0xec]
mov dword [esp + 4], str.___d_symtabs_from_stmt_list_entries_n
mov dword [esp + 8], eax
mov eax, dword [0x8663bc]
mov dword [esp], eax
call fcn.0059ac60
mov eax, dword [esi + 0xf0]
mov dword [esp + 4], str.___d_symtab_sharers_n
mov dword [esp + 8], eax
mov eax, dword [0x8663bc]
mov dword [esp], eax
call fcn.0059ac60
mov eax, dword [esi + 0xf4]
mov dword [esp + 4], str.___d_type_units_without_a_stmt_list_n
mov dword [esp + 8], eax
mov eax, dword [0x8663bc]
mov dword [esp], eax
call fcn.0059ac60
mov eax, dword [0x85ee48]
mov eax, dword [eax + 0xe0]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5354f0
mov dword [esp], eax
call fcn.00649c80
jmp 0x5405c7
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov dword [esp + 4], str.Building_psymtabs_of_objfile__s_..._n
mov dword [esp + 8], eax
mov eax, dword [0x8663bc]
mov dword [esp], eax
call fcn.0059ac60
jmp 0x540588
xor eax, eax
jmp 0x540b0b
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [0x8663b0]
mov dword [esp], eax
call fcn.004e2c00
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [ebp - 0x88]
mov eax, edx
mov dword [edi + 0x48], edx
jmp 0x5409d4
mov dword [esp + 4], 0x400
mov dword [esp], eax
call fcn.004bc760
jmp 0x540534
mov eax, dword [ebp - 0x88]
mov dword [esp + 4], esi
add eax, 0x3c
mov dword [esp], eax
call fcn.00640110
mov edi, dword [ebp - 0x88]
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x48]
mov edi, edx
jmp 0x540981
mov eax, dword [0x8663bc]
mov dword [esp + 4], str.Building_type_unit_groups_..._n
mov dword [esp], eax
call fcn.0059ac60
mov eax, dword [0x85ee48]
mov eax, dword [eax + 0xd0]
jmp 0x54076f
or byte [esi + 0x64], 2
jmp 0x540997
mov dword [esp + 0x10], str.dwarf2_per_objfile__type_unit_groups__NULL
mov dword [esp + 0xc], str.build_type_unit_groups
mov dword [esp + 8], 0x71c9b2
mov dword [esp + 4], 0x1490
mov dword [esp], str._home_build_work_GCC_4_8_build_src_gdb_gdb_dwarf2read.c
call fcn.0059c0c0
mov dword [esp + 0x10], str.iter___dwarf2_per_objfile__all_type_unit_groups_0___dwarf2_per_objfile__n_type_unit_groups
mov dword [esp + 0xc], str.build_type_unit_groups
mov dword [esp + 8], 0x71c9b2
mov dword [esp + 4], 0x14e9
mov dword [esp], str._home_build_work_GCC_4_8_build_src_gdb_gdb_dwarf2read.c
call fcn.0059c0c0