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

Disassembly:
sub esp, 0x6c
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x68], ebp
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], edi
mov eax, dword [ebx + 0x14]
test byte [eax + 2], 0x10
je 0x4fcb48
mov esi, dword [eax + 0x10]
cmp esi, dword [esp + 0x70]
jne 0x4fce82
lea eax, [esp + 0x48]
mov dword [esp + 0x48], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.00649b50
mov edx, eax
mov eax, dword [eax]
test eax, eax
je 0x4fcb60
mov ebx, dword [eax + 4]
mov eax, ebx
mov esi, dword [esp + 0x60]
mov ebx, dword [esp + 0x5c]
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x68]
add esp, 0x6c
ret
mov dword [esp + 0x24], edx
mov dword [esp], ebx
call fcn.004f8810
mov dword [esp], eax
call fcn.004f8760
mov edx, dword [esp + 0x24]
mov edi, eax
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x48]
mov ecx, dword [esp + 0x2c]
sub ecx, eax
cmp ecx, 7
jle 0x4fcd16
lea ecx, [eax + 8]
mov eax, dword [esi + 0x44]
mov dword [esi + 0x48], ecx
cmp ecx, eax
mov dword [esp + 0x34], eax
je 0x4fcf91
mov eax, dword [esi + 0x54]
add eax, ecx
mov ecx, dword [esi + 0x54]
not ecx
and eax, ecx
mov ecx, eax
sub ecx, dword [esi + 0x40]
mov dword [esi + 0x48], eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esi + 0x40]
cmp dword [esp + 0x30], ecx
jle 0x4fcbd4
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x48], eax
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x44], eax
mov dword [ecx], ebx
mov dword [ecx + 4], edi
mov dword [edx], ecx
mov eax, dword [ebx + 0x14]
mov edx, dword [edi + 0x14]
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov ecx, dword [eax + 0xc]
mov dword [edx + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov eax, dword [eax + 0x20]
and byte [edx + 2], 0xef
mov dword [edx + 0x20], eax
mov dword [esp + 0x24], edx
mov dword [esp], ebx
call fcn.004f8810
mov edx, dword [esp + 0x24]
mov dword [edx + 0x10], eax
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4fcc56
mov edx, dword [edi + 0x14]
mov dword [esp], ecx
mov dword [esp + 0x24], edx
call fcn.00642070
mov edx, dword [esp + 0x24]
mov dword [edx + 8], eax
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4fcc76
mov edx, dword [edi + 0x14]
mov dword [esp], ecx
mov dword [esp + 0x24], edx
call fcn.00642070
mov edx, dword [esp + 0x24]
mov dword [edx + 0xc], eax
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0xc]
mov dword [edi + 0xc], edx
mov edx, dword [ebx + 0x10]
mov dword [edi + 0x10], edx
movzx edx, word [eax + 4]
test dx, dx
jne 0x4fcd40
cmp byte [eax], 0xc
je 0x4fcf9a
mov edx, dword [eax + 0x14]
test edx, edx
je 0x4fccbc
mov esi, dword [edi + 0x14]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 8], ebp
mov dword [esp], edx
call fcn.004fcaf0
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0x14]
mov edx, dword [eax + 0x1c]
test edx, edx
je 0x4fcce0
mov ecx, dword [esp + 0x70]
mov esi, dword [edi + 0x14]
mov dword [esp + 8], ebp
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.004fcaf0
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax]
cmp dl, 9
je 0x4fcf81
lea eax, [edx - 3]
cmp al, 1
ja 0x4fceb0
mov edx, dword [edi + 0x14]
mov ebx, edi
movzx eax, word [edx + 2]
mov dword [edx + 0x20], 0x708e40
and ax, 0xfc7f
or al, 0x80
mov word [edx + 2], ax
jmp 0x4fcb48
lea eax, [esi + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.00640110
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x2c], ecx
jmp 0x4fcb93
movsx edx, dx
mov dword [esp + 0x34], edx
mov edx, dword [edi + 0x14]
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], 0x18
mov dword [esp + 0x24], edx
mov dword [esp], ecx
call fcn.005c2ed0
mov edx, dword [esp + 0x24]
mov dword [edx + 0x18], eax
mov edx, dword [esp + 0x34]
mov eax, dword [ebx + 0x14]
test edx, edx
jle 0x4fcc8f
xor edx, edx
mov dword [esp + 0x2c], ebx
mov ebx, edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], ebp
mov esi, dword [esp + 0x20]
mov edx, dword [esi + 0x14]
mov esi, dword [edx + 0x18]
mov edx, dword [eax + 0x18]
add esi, ebx
add edx, ebx
movzx ecx, byte [esi + 8]
movzx ebp, byte [edx + 8]
and ecx, 0xfffffffe
and ebp, 1
or ecx, ebp
mov byte [esi + 8], cl
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x20]
mov ecx, dword [edi + 0x14]
mov ecx, dword [ecx + 0x18]
mov edi, dword [ecx + ebx + 8]
mov ecx, dword [ebp + 0x14]
and edi, 0xfffffff0
mov ebp, dword [ecx + 0x18]
mov ecx, dword [ebp + ebx + 8]
and ecx, 0xf
or ecx, edi
mov dword [ebp + ebx + 8], ecx
mov ecx, dword [edx + 0xc]
test ecx, ecx
je 0x4fce0e
mov edx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], edx
mov dword [esp], ecx
call fcn.004fcaf0
mov dword [esi + 0xc], eax
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 0x14]
mov edx, dword [eax + 0x18]
add edx, ebx
mov ecx, dword [edx + 0x10]
test ecx, ecx
je 0x4fce38
mov edi, dword [esp + 0x20]
mov eax, dword [edi + 0x14]
mov esi, dword [eax + 0x18]
mov dword [esp], ecx
call fcn.00642070
mov ebp, dword [esp + 0x2c]
add esi, ebx
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0x18]
add edx, ebx
movzx ecx, byte [edx + 8]
shr cl, 1
and ecx, 7
cmp ecx, 1
je 0x4fcf32
jle 0x4fcf60
cmp ecx, 2
je 0x4fcf13
cmp ecx, 3
lea esi, [esi]
je 0x4fcec0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], str.Unexpected_type_field_location_kind:__d
mov dword [esp + 4], 0xda0
mov dword [esp], str._home_build_work_GCC_4_8_build_src_gdb_gdb_gdbtypes.c
call fcn.0059c0c0
mov dword [esp + 0x10], str.TYPE_OBJFILE__type___objfile
mov dword [esp + 0xc], str.copy_type_recursive
mov dword [esp + 8], 0x707d32
mov dword [esp + 4], 0xd5a
mov dword [esp], str._home_build_work_GCC_4_8_build_src_gdb_gdb_gdbtypes.c
call fcn.0059c0c0
nop
cmp dl, 0x17
mov ebx, edi
je 0x4fccf7
jmp 0x4fcb48
mov ebp, dword [esp + 0x20]
mov eax, dword [ebp + 0x14]
mov esi, dword [eax + 0x18]
add esi, ebx
movzx eax, byte [esi + 8]
and eax, 0xfffffff1
or eax, 6
mov byte [esi + 8], al
mov eax, dword [edx]
mov dword [esp], eax
call fcn.00642070
mov edx, dword [esp + 0x2c]
mov dword [esi], eax
mov eax, dword [edx + 0x14]
add dword [esp + 0x30], 1
add ebx, 0x18
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x34], ecx
jg 0x4fcd94
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x38]
jmp 0x4fcc8f
mov edi, dword [esp + 0x20]
mov ecx, dword [edi + 0x14]
mov esi, dword [ecx + 0x18]
add esi, ebx
movzx ecx, byte [esi + 8]
and ecx, 0xfffffff1
or ecx, 4
mov byte [esi + 8], cl
mov edx, dword [edx]
mov dword [esi], edx
jmp 0x4fceec
mov edi, dword [esp + 0x20]
mov ecx, dword [edi + 0x14]
mov ebp, dword [ecx + 0x18]
add ebp, ebx
movzx esi, byte [ebp + 8]
and esi, 0xfffffff1
or esi, 2
mov ecx, esi
mov byte [ebp + 8], cl
mov esi, dword [edx]
mov edi, dword [edx + 4]
mov dword [ebp], esi
mov dword [ebp + 4], edi
jmp 0x4fceec
test ecx, ecx
jne 0x4fce62
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx + 0x18]
add ecx, ebx
and byte [ecx + 8], 0xf1
mov edx, dword [edx]
mov dword [ecx], edx
jmp 0x4fceec
mov edx, dword [eax + 0x20]
mov ebx, edi
mov eax, dword [edi + 0x14]
mov dword [eax + 0x20], edx
jmp 0x4fcb48
or byte [esi + 0x64], 2
jmp 0x4fcba8
mov esi, dword [edi + 0x14]
mov dword [esp], 0x18
call fcn.005c2e50
mov dword [esi + 0x18], eax
mov edx, dword [ebx + 0x14]
mov eax, dword [edi + 0x14]
mov edx, dword [edx + 0x18]
mov eax, dword [eax + 0x18]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x10], ecx
mov edx, dword [edx + 0x14]
mov dword [eax + 0x14], edx
mov eax, dword [ebx + 0x14]
jmp 0x4fcc98