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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebp, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
test ebp, ebp
mov edi, dword [esp + 0x70]
mov dword [esp + 0x30], edx
jne 0x4c0359
mov edx, dword [ebx + 0x24]
mov eax, dword [edx + 8]
mov dword [esp + 0x2c], edx
call fcn.004bd8a0
mov edx, dword [esp + 0x2c]
test eax, eax
mov dword [ebx + 0x4048], eax
je 0x4c0280
mov dword [esp], ebx
call fcn.00515a30
test ebp, ebp
mov dword [esp + 0x34], eax
je 0x4c0136
test edi, 4
mov dword [esp + 0x38], 0
jne 0x4c016e
test esi, esi
je 0x4c01ba
mov eax, dword [esi + 8]
test eax, eax
je 0x4c00ce
mov eax, dword [ebx + 0x24]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.004bddc0
mov eax, dword [ebx + 0x4048]
mov dword [esp], ebx
call dword [eax + 8]
mov eax, edi
and eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], 0x6a9340
call fcn.00582490
mov eax, dword [ebx + 0x4048]
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [eax + 0x18]
mov edx, edi
mov eax, ebx
call fcn.004c06b0
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.0048e670
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
call fcn.005c2f40
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004bd9c0
test esi, esi
jne 0x4c009c
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + 0x74]
mov dword [esp], eax
call fcn.004bdb70
mov dword [esp], fcn.005c2f40
mov esi, eax
mov dword [esp + 4], eax
call fcn.0048e4f0
test edi, 4
mov dword [esp + 0x38], esi
je 0x4c00b0
mov dword [esp + 4], 0
mov dword [esp], 0x4bf2a0
call fcn.0048e4f0
mov eax, dword [0x8671f8]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x4c01a6
mov dword [esp], eax
call fcn.005157e0
mov eax, dword [0x8671f8]
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x4c030f
mov eax, dword [ebx + 0x4048]
mov dword [esp], ebx
call dword [eax + 4]
test esi, esi
jne 0x4c00b8
mov eax, dword [ebx + 0x4048]
mov dword [esp], ebx
call dword [eax + 8]
mov eax, edi
and eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], 0x6a9340
call fcn.00582490
mov edx, dword [esp + 0x30]
mov ecx, dword [ebx + 0x4c]
mov esi, dword [esp + 0x30]
mov eax, dword [ebx + 0x48]
mov dword [ebx + 0x4060], edx
mov edx, ecx
shl esi, 2
sub edx, eax
cmp esi, edx
mov dword [esp + 0x28], ecx
jle 0x4c021f
lea eax, [ebx + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.00640110
mov edx, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x28], edx
mov edx, dword [ebx + 0x44]
add eax, esi
mov dword [ebx + 0x48], eax
cmp eax, edx
je 0x4c0350
mov ecx, dword [ebx + 0x54]
add eax, dword [ebx + 0x54]
not ecx
and eax, ecx
mov ecx, eax
sub ecx, dword [ebx + 0x40]
mov dword [ebx + 0x48], eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x28]
sub ecx, dword [ebx + 0x40]
cmp dword [esp + 0x3c], ecx
jle 0x4c0259
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x405c], edx
mov dword [esp + 8], esi
mov dword [esp + 4], ebp
mov dword [esp], edx
call sub.msvcrt.dll_memcpy
mov eax, ebx
call fcn.004bfe20
jmp 0x4c0107
mov eax, dword [edx + 0x74]
mov edx, dword [ebx + 0x4c]
mov esi, dword [esp + 0x30]
mov dword [ebx + 0x4060], eax
mov eax, dword [ebx + 0x48]
mov ecx, edx
shl esi, 2
sub ecx, eax
cmp esi, ecx
jg 0x4c02f8
mov ecx, dword [ebx + 0x44]
add eax, esi
mov dword [ebx + 0x48], eax
cmp eax, ecx
je 0x4c0340
mov edi, dword [ebx + 0x54]
add eax, edi
not edi
and eax, edi
mov edi, edx
mov ebp, eax
sub edi, dword [ebx + 0x40]
sub ebp, dword [ebx + 0x40]
mov dword [ebx + 0x48], eax
cmp ebp, edi
jle 0x4c02cd
mov dword [ebx + 0x48], edx
mov eax, edx
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x405c], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], ecx
call sub.msvcrt.dll_memset
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004bd9c0
lea eax, [ebx + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.00640110
mov eax, dword [ebx + 0x48]
mov edx, dword [ebx + 0x4c]
jmp 0x4c029e
mov dword [esp + 0x10], str.symfile_objfile__NULL
mov dword [esp + 0xc], str.syms_from_objfile_1
mov dword [esp + 8], 0x6f12d5
mov dword [esp + 4], 0x3d7
mov dword [esp], str._home_build_work_GCC_4_8_build_src_gdb_gdb_symfile.c
call fcn.0059c0c0
nop
lea esi, [esi]
or byte [ebx + 0x64], 2
jmp 0x4c02ae
or byte [ebx + 0x64], 2
jmp 0x4c022f
test esi, esi
je 0x4c0067
mov dword [esp + 0x10], str.___addrs__offsets_
mov dword [esp + 0xc], str.syms_from_objfile_1
mov dword [esp + 8], 0x6f12d5
mov dword [esp + 4], 0x3a9
mov dword [esp], str._home_build_work_GCC_4_8_build_src_gdb_gdb_symfile.c
call fcn.0059c0c0
lea esi, [esi]