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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
test byte [eax + 0x29], 8
jne 0x477ce4
mov edx, dword [edi + 0x14]
mov dword [ebp - 0x34], edx
and edx, 0x800000
je 0x477ce4
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x477d02
cmp word [ebp - 0x34], 0
js 0x477d02
mov esi, dword [edi + 0x78]
test esi, esi
je 0x477d02
test byte [ebp - 0x34], 4
jne 0x477d02
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x28], eax
mov eax, esi
mov cl, byte [ebp - 0x28]
shr eax, cl
test eax, eax
jne 0x477bf2
lea eax, [esi - 1]
test eax, esi
jne 0x477d02
test dword [ebp - 0x34], 0x1000000
je 0x477d02
mov eax, 1
mov cl, byte [ebp - 0x28]
shl eax, cl
cmp esi, eax
ja 0x477cf9
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
test eax, eax
je 0x477d0f
mov ebx, eax
jmp 0x477c1f
mov ebx, dword [ebx]
test ebx, ebx
je 0x477d0f
mov eax, dword [ebx + 4]
test eax, eax
je 0x477c15
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x34]
mov ecx, dword [edx + 0x14]
xor eax, ecx
test eax, 0x1800000
jne 0x477c15
cmp esi, dword [edx + 0x78]
jne 0x477c15
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [edx + 0x40]
jne 0x477c15
mov eax, dword [edx + 0x3c]
cmp eax, dword [edi + 0x3c]
jne 0x477c15
mov eax, dword [ebp - 0x20]
add eax, 0x17
test dword [ebp - 0x34], 0x1000000
je 0x477c61
mov ecx, dword [edi + 0x78]
add eax, ecx
mov esi, dword [ebp + 8]
push edx
push edx
push eax
push esi
call fcn.00427e70
mov ecx, dword [ebp + 0x14]
add esp, 0x10
mov esi, eax
test eax, eax
mov dword [ecx], eax
je 0x477cd7
mov eax, dword [ebx + 4]
test eax, eax
je 0x477df9
mov eax, dword [eax]
mov dword [esi], eax
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
mov dword [ebx + 4], esi
mov dword [esi + 8], eax
mov eax, dword [ebx + 8]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 4], edi
mov dword [esi + 0x10], 0
mov dword [edi + 0x28], eax
test byte [edi + 0x17], 1
jne 0x477ddd
lea eax, [esi + 0x14]
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0x10]
push eax
push edi
mov eax, dword [edi + 0x94]
push eax
call fcn.0046fd60
add esp, 0x10
test eax, eax
jne 0x477d02
mov edx, dword [ebp + 0x14]
xor eax, eax
mov dword [edx], 0
jmp 0x477d07
push ebx
push str._bfd_add_merge_section
push 0x172
push str._usr_local_google_buildbot_src_android_gcc_toolchain_build_.._binutils_binutils_2.27_bfd_merge.c
call fcn.00424270
dec eax
test eax, esi
je 0x477c04
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
push eax
push eax
mov eax, dword [ebp + 8]
push 0xc
push eax
call fcn.00427e70
add esp, 0x10
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x477cd7
mov edx, dword [ebp + 0xc]
mov ebx, eax
sub esp, 0xc
mov eax, dword [edx]
mov dword [ebx + 4], 0
mov dword [ebx], eax
mov dword [edx], ebx
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x78]
mov dword [ebp - 0x30], eax
push 0x30
mov dword [ebp - 0x24], edx
call fcn.004318c0
add esp, 0x10
mov esi, eax
test eax, eax
je 0x477db3
push 0x413b
push 0x20
push 0x477e00
push eax
call fcn.00426030
add esp, 0x10
test eax, eax
je 0x477dc2
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x30]
and eax, 0x1000000
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 0x24]
mov edx, dword [ebp - 0x30]
mov dword [esi + 0x20], 0
mov dword [esi + 0x2c], edx
mov dword [esi + 0x24], 0
mov edx, dword [edi + 0x14]
mov dword [ecx + 8], esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], edx
jmp 0x477c4d
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 8], 0
jmp 0x477cd7
sub esp, 0xc
push esi
call sub.msvcrt.dll_free
mov ecx, dword [ebp - 0x2c]
add esp, 0x10
mov dword [ecx + 8], 0
jmp 0x477cd7
add eax, 0x10
push ecx
mov edx, dword [edi + 0x78]
lea eax, [esi + eax + 4]
push edx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x10
jmp 0x477cb8
mov dword [esi], esi
jmp 0x477c8f