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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
test al, 1
jne 0x4af64d
call fcn.004a4848
mov ecx, dword [ebp - 0x10]
jmp 0x4af650
and eax, 0xfffffffe
movzx ebx, byte [eax + 0xb]
test bl, bl
jns 0x4af65b
mov ebx, dword [eax + 4]
mov eax, dword [ecx + 0x14]
add ebx, eax
test eax, eax
je 0x4af695
xor esi, esi
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x1c]
mov ecx, dword [eax + esi*4 + 4]
call fcn.004ad910
add ebx, eax
or eax, 1
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
inc esi
bsr eax, eax
lea edi, [eax + eax*8 + 0x49]
shr edi, 6
add edi, ebx
cmp edx, esi
mov ebx, edi
jne 0x4af669
jmp 0x4af697
mov edi, ebx
mov eax, dword [ecx + 0x24]
add edi, eax
test eax, eax
je 0x4af6d1
xor esi, esi
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x2c]
mov ecx, dword [eax + esi*4 + 4]
call fcn.004ac7b0
add edi, eax
or eax, 1
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
inc esi
bsr eax, eax
lea ebx, [eax + eax*8 + 0x49]
shr ebx, 6
add ebx, edi
cmp edx, esi
mov edi, ebx
jne 0x4af6a5
jmp 0x4af6d3
mov ebx, edi
mov eax, dword [ecx + 0x34]
add ebx, eax
test eax, eax
je 0x4af70d
xor esi, esi
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x3c]
mov ecx, dword [eax + esi*4 + 4]
call fcn.004ae210
add ebx, eax
or eax, 1
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
inc esi
bsr eax, eax
lea edi, [eax + eax*8 + 0x49]
shr edi, 6
add edi, ebx
cmp edx, esi
mov ebx, edi
jne 0x4af6e1
jmp 0x4af70f
mov edi, ebx
mov esi, dword [ecx + 0x44]
add edi, esi
test esi, esi
je 0x4af743
xor ebx, ebx
mov eax, dword [ecx + 0x4c]
mov ecx, dword [eax + ebx*4 + 4]
call fcn.004adda0
add edi, eax
or eax, 1
mov ecx, dword [ebp - 0x10]
inc ebx
bsr eax, eax
lea eax, [eax + eax*8 + 0x49]
shr eax, 6
add eax, edi
cmp esi, ebx
mov edi, eax
jne 0x4af71a
jmp 0x4af745
mov eax, edi
mov ebx, dword [ecx + 0x50]
test ebx, ebx
je 0x4af777
mov edx, dword [ecx + 0x58]
xor ecx, ecx
mov esi, ebx
mov edi, dword [edx]
test edi, edi
js 0x4af768
or edi, 1
bsr edi, edi
lea edi, [edi + edi*8 + 0x49]
shr edi, 6
jmp 0x4af76d
mov edi, 0xa
add ecx, edi
add edx, 4
dec esi
jne 0x4af753
jmp 0x4af779
xor ecx, ecx
mov edx, dword [ebp - 0x10]
add ebx, eax
add ebx, ecx
mov esi, dword [edx + 0x60]
add ebx, esi
test esi, esi
je 0x4af7b8
mov dword [ebp - 0x14], esi
xor esi, esi
mov eax, dword [edx + 0x68]
mov ecx, dword [eax + esi*4 + 4]
call fcn.004ae670
add ebx, eax
or eax, 1
inc esi
mov edx, dword [ebp - 0x10]
bsr eax, eax
lea edi, [eax + eax*8 + 0x49]
shr edi, 6
add edi, ebx
cmp dword [ebp - 0x14], esi
mov ebx, edi
jne 0x4af78e
jmp 0x4af7ba
mov edi, ebx
mov ebx, dword [edx + 8]
test bl, 0x1f
je 0x4af873
test bl, 1
je 0x4af7ec
mov ecx, dword [edx + 0x6c]
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x4af7d9
mov eax, dword [ecx + 4]
add edi, eax
or eax, 1
bsr eax, eax
lea eax, [eax + eax*8 + 0x49]
shr eax, 6
lea edi, [eax + edi + 1]
test bl, 2
je 0x4af80c
mov ecx, dword [edx + 0x70]
call fcn.004ae9d0
add edi, eax
or eax, 1
bsr eax, eax
lea eax, [eax + eax*8 + 0x49]
shr eax, 6
lea edi, [eax + edi + 1]
test bl, 4
jne 0x4af816
mov edx, dword [ebp - 0x10]
jmp 0x4af82d
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x74]
or eax, 1
bsr eax, eax
lea eax, [eax + eax*8 + 0x49]
shr eax, 6
lea edi, [edi + eax + 1]
test bl, 8
je 0x4af850
mov eax, dword [edx + 0x78]
test eax, eax
js 0x4af849
or eax, 1
bsr eax, eax
lea eax, [eax + eax*8 + 0x49]
shr eax, 6
inc eax
jmp 0x4af84e
mov eax, 0xb
add edi, eax
test bl, 0x10
je 0x4af873
mov eax, dword [edx + 0x7c]
test eax, eax
js 0x4af86c
or eax, 1
bsr eax, eax
lea eax, [eax + eax*8 + 0x49]
shr eax, 6
inc eax
jmp 0x4af871
mov eax, 0xb
add edi, eax
mov dword [edx + 0xc], edi
mov eax, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret