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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [ecx + 0x14]
mov dword [ebp - 0x14], ecx
mov eax, dword [ecx + 0x1c]
lea ecx, [eax + 4]
test eax, eax
cmove ecx, eax
test ebx, ebx
je 0x4be6d5
lea eax, [ebx*4]
mov dword [ebp - 0x10], eax
xor esi, esi
mov edi, ecx
mov ecx, dword [ecx + esi]
call fcn.004bbed0
mov ecx, edi
add ebx, eax
or eax, 1
bsr eax, eax
lea edi, [eax + eax*8]
add edi, 0x49
shr edi, 6
add edi, ebx
add esi, 4
mov ebx, edi
cmp dword [ebp - 0x10], esi
jne 0x4be6aa
jmp 0x4be6d7
xor edi, edi
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x2c]
add edi, ecx
lea edx, [eax + 4]
test eax, eax
cmove edx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x4be722
shl dword [ebp - 0x10], 2
xor esi, esi
mov ecx, dword [edx + esi]
mov ebx, edx
call fcn.004ba8a0
mov edx, ebx
add edi, eax
or eax, 1
bsr eax, eax
lea ebx, [eax + eax*8]
add ebx, 0x49
shr ebx, 6
add ebx, edi
add esi, 4
mov edi, ebx
cmp dword [ebp - 0x10], esi
jne 0x4be6f7
jmp 0x4be724
mov ebx, edi
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x34]
mov eax, dword [eax + 0x3c]
add ebx, ecx
lea edx, [eax + 4]
test eax, eax
cmove edx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x4be76f
shl dword [ebp - 0x10], 2
xor esi, esi
mov ecx, dword [edx + esi]
mov edi, edx
call fcn.004bc970
mov edx, edi
add ebx, eax
or eax, 1
bsr eax, eax
lea edi, [eax + eax*8]
add edi, 0x49
shr edi, 6
add edi, ebx
add esi, 4
mov ebx, edi
cmp dword [ebp - 0x10], esi
jne 0x4be744
jmp 0x4be771
mov edi, ebx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x44]
mov eax, dword [eax + 0x4c]
add edi, ecx
lea ebx, [eax + 4]
test eax, eax
cmove ebx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x4be7b8
shl dword [ebp - 0x10], 2
xor esi, esi
mov ecx, dword [ebx + esi]
call fcn.004bc4a0
add edi, eax
or eax, 1
bsr eax, eax
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add eax, edi
add esi, 4
mov edi, eax
cmp dword [ebp - 0x10], esi
jne 0x4be791
jmp 0x4be7ba
mov eax, edi
mov ecx, dword [ebp - 0x14]
mov edi, dword [ecx + 0x50]
test edi, edi
je 0x4be7f1
mov edx, dword [ecx + 0x58]
xor ecx, ecx
xor esi, esi
mov ebx, dword [edx + esi*4]
test ebx, ebx
js 0x4be7e3
or ebx, 1
bsr ebx, ebx
lea ebx, [ebx + ebx*8]
add ebx, 0x49
shr ebx, 6
jmp 0x4be7e8
mov ebx, 0xa
add ecx, ebx
inc esi
cmp edi, esi
jne 0x4be7cb
jmp 0x4be7f3
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov ebx, dword [edx + 0x60]
add edi, eax
mov eax, dword [edx + 0x68]
add edi, ecx
add edi, ebx
lea esi, [eax + 4]
test eax, eax
cmove esi, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x4be83e
shl dword [ebp - 0x10], 2
xor ebx, ebx
mov ecx, dword [esi + ebx]
call fcn.004bcff0
add edi, eax
or eax, 1
bsr eax, eax
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add eax, edi
add ebx, 4
mov edi, eax
cmp dword [ebp - 0x10], ebx
jne 0x4be817
jmp 0x4be840
mov eax, edi
mov edi, dword [ebp - 0x14]
mov ecx, dword [edi + 8]
test cl, 0x1f
je 0x4be932
test cl, 1
je 0x4be876
mov esi, dword [edi + 0x6c]
movzx edx, byte [esi + 0xb]
test dl, dl
jns 0x4be862
mov edx, dword [esi + 4]
add eax, edx
or edx, 1
bsr edx, edx
lea edx, [edx + edx*8]
add edx, 0x49
shr edx, 6
add eax, edx
inc eax
test cl, 2
je 0x4be8ce
mov esi, dword [edi + 0x70]
mov ebx, dword [esi + 4]
mov edx, dword [esi + 8]
add edx, edx
and edx, 2
test bl, 1
jne 0x4be893
mov edi, dword [ebp - 0x14]
jmp 0x4be8b7
and ebx, 0xfffffffe
mov dword [ebp - 0x18], ebx
movzx ebx, byte [ebx + 0xf]
mov dword [ebp - 0x10], ebx
test bl, bl
js 0x4be8ac
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
jmp 0x4be8b5
mov edi, dword [ebp - 0x18]
mov ebx, dword [edi + 8]
mov edi, dword [ebp - 0x14]
add edx, ebx
mov dword [esi + 0xc], edx
add eax, edx
or edx, 1
bsr edx, edx
lea edx, [edx + edx*8]
add edx, 0x49
shr edx, 6
add eax, edx
inc eax
test cl, 4
je 0x4be8e8
mov edx, dword [edi + 0x74]
or edx, 1
bsr edx, edx
lea edx, [edx + edx*8]
add edx, 0x49
shr edx, 6
add eax, edx
inc eax
test cl, 8
je 0x4be90d
mov edx, dword [edi + 0x78]
test edx, edx
js 0x4be906
or edx, 1
bsr edx, edx
lea edx, [edx + edx*8]
add edx, 0x49
shr edx, 6
inc edx
jmp 0x4be90b
mov edx, 0xb
add eax, edx
test cl, 0x10
je 0x4be932
mov ecx, dword [edi + 0x7c]
test ecx, ecx
js 0x4be92b
or ecx, 1
bsr ecx, ecx
lea ecx, [ecx + ecx*8]
add ecx, 0x49
shr ecx, 6
inc ecx
jmp 0x4be930
mov ecx, 0xb
add eax, ecx
mov ecx, dword [edi + 4]
test cl, 1
je 0x4be94a
and ecx, 0xfffffffe
movzx edx, byte [ecx + 0xf]
test dl, dl
jns 0x4be948
mov edx, dword [ecx + 8]
add eax, edx
mov dword [edi + 0xc], eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret