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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov edx, dword [ecx + 0x14]
test edx, edx
mov dword [ebp - 0x10], ecx
jle 0x5f37d5
mov ecx, dword [ecx + 0x1c]
xor edi, edi
mov ebx, edx
jmp 0x5f37c7
mov eax, dword [esi + 4]
add ebx, eax
or eax, 1
bsr eax, eax
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add eax, ebx
inc edi
mov ebx, eax
cmp edx, edi
je 0x5f37d7
mov esi, dword [ecx + edi*4 + 4]
movsx eax, byte [esi + 0xb]
test eax, eax
jns 0x5f37ad
jmp 0x5f37aa
mov eax, edx
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 8]
test dl, dl
je 0x5f3934
test dl, 1
je 0x5f380f
mov edi, dword [ebx + 0x20]
and edi, 0xfffffffc
movsx esi, byte [edi + 0xb]
test esi, esi
jns 0x5f37fb
mov esi, dword [edi + 4]
add eax, esi
or esi, 1
bsr ecx, esi
lea ecx, [ecx + ecx*8]
add ecx, 0x49
shr ecx, 6
add eax, ecx
inc eax
test dl, 2
je 0x5f3839
mov edi, dword [ebx + 0x24]
and edi, 0xfffffffc
movsx esi, byte [edi + 0xb]
test esi, esi
jns 0x5f3825
mov esi, dword [edi + 4]
add eax, esi
or esi, 1
bsr ecx, esi
lea ecx, [ecx + ecx*8]
add ecx, 0x49
shr ecx, 6
add eax, ecx
inc eax
test dl, 4
je 0x5f3863
mov edi, dword [ebx + 0x28]
and edi, 0xfffffffc
movsx esi, byte [edi + 0xb]
test esi, esi
jns 0x5f384f
mov esi, dword [edi + 4]
add eax, esi
or esi, 1
bsr ecx, esi
lea ecx, [ecx + ecx*8]
add ecx, 0x49
shr ecx, 6
add eax, ecx
inc eax
test dl, 8
je 0x5f388d
mov edi, dword [ebx + 0x2c]
and edi, 0xfffffffc
movsx esi, byte [edi + 0xb]
test esi, esi
jns 0x5f3879
mov esi, dword [edi + 4]
add eax, esi
or esi, 1
bsr ecx, esi
lea ecx, [ecx + ecx*8]
add ecx, 0x49
shr ecx, 6
add eax, ecx
inc eax
test dl, 0x10
je 0x5f38b7
mov edi, dword [ebx + 0x30]
and edi, 0xfffffffc
movsx esi, byte [edi + 0xb]
test esi, esi
jns 0x5f38a3
mov esi, dword [edi + 4]
add eax, esi
or esi, 1
bsr ecx, esi
lea ecx, [ecx + ecx*8]
add ecx, 0x49
shr ecx, 6
add eax, ecx
inc eax
test dl, 0x20
je 0x5f38e1
mov ecx, dword [ebx + 0x38]
mov esi, dword [ebx + 0x3c]
or ecx, 1
bsr ecx, ecx
bsr edi, esi
xor edi, 0x20
test esi, esi
cmove edi, ecx
lea ecx, [edi + edi*8]
add ecx, 0x89
shr ecx, 6
add eax, ecx
test dl, 0x40
je 0x5f390b
mov ecx, dword [ebx + 0x40]
mov esi, dword [ebx + 0x44]
or ecx, 1
bsr ecx, ecx
bsr edi, esi
xor edi, 0x20
test esi, esi
cmove edi, ecx
lea ecx, [edi + edi*8]
add ecx, 0x89
shr ecx, 6
add eax, ecx
test dl, dl
jns 0x5f3934
mov ecx, dword [ebx + 0x48]
mov esi, dword [ebx + 0x4c]
or ecx, 1
bsr ecx, ecx
bsr edi, esi
xor edi, 0x20
test esi, esi
cmove edi, ecx
lea ecx, [edi + edi*8]
add ecx, 0x89
shr ecx, 6
add eax, ecx
test edx, 0x1f00
je 0x5f3a15
bt edx, 8
jae 0x5f396b
mov ecx, dword [ebx + 0x50]
mov esi, dword [ebx + 0x54]
or ecx, 1
bsr ecx, ecx
bsr edi, esi
xor edi, 0x20
test esi, esi
cmove edi, ecx
lea ecx, [edi + edi*8]
add ecx, 0x89
shr ecx, 6
add eax, ecx
bt edx, 9
jae 0x5f3996
mov ecx, dword [ebx + 0x58]
mov esi, dword [ebx + 0x5c]
or ecx, 1
bsr ecx, ecx
bsr edi, esi
xor edi, 0x20
test esi, esi
cmove edi, ecx
lea ecx, [edi + edi*8]
add ecx, 0x89
shr ecx, 6
add eax, ecx
bt edx, 0xa
jae 0x5f39c1
mov ecx, dword [ebx + 0x60]
mov esi, dword [ebx + 0x64]
or ecx, 1
bsr ecx, ecx
bsr edi, esi
xor edi, 0x20
test esi, esi
cmove edi, ecx
lea ecx, [edi + edi*8]
add ecx, 0x89
shr ecx, 6
add eax, ecx
bt edx, 0xb
jae 0x5f39ec
mov ecx, dword [ebx + 0x68]
mov esi, dword [ebx + 0x6c]
or ecx, 1
bsr ecx, ecx
bsr edi, esi
xor edi, 0x20
test esi, esi
cmove edi, ecx
lea ecx, [edi + edi*8]
add ecx, 0x89
shr ecx, 6
add eax, ecx
bt edx, 0xc
jae 0x5f3a15
mov ecx, dword [ebx + 0x70]
mov edx, ecx
or edx, 1
bsr edx, edx
lea edx, [edx + edx*8]
add edx, 0x49
shr edx, 6
test ecx, ecx
mov ecx, 0xa
cmovns ecx, edx
add eax, ecx
add eax, 2
mov edx, dword [ebx + 0x88]
cmp edx, 0xf
jle 0x5f3a43
cmp edx, 0x10
je 0x5f3a2a
cmp edx, 0x1b
jne 0x5f3a64
mov ecx, dword [ebx + 0x74]
or ecx, 1
bsr ecx, ecx
lea ecx, [ecx + ecx*8]
add ecx, 0x49
shr ecx, 6
add eax, ecx
add eax, 2
jmp 0x5f3a64
cmp edx, 0xe
je 0x5f3a4d
cmp edx, 0xf
jne 0x5f3a64
mov ecx, dword [ebx + 0x74]
or ecx, 1
bsr ecx, ecx
lea ecx, [ecx + ecx*8]
add ecx, 0x89
shr ecx, 6
add eax, ecx
mov ecx, dword [ebx + 0x8c]
add ecx, 0xffffffef
cmp ecx, 2
ja 0x5f3a89
mov ecx, dword [ebx + 0x78]
or ecx, 1
bsr ecx, ecx
lea ecx, [ecx + ecx*8]
add ecx, 0x49
shr ecx, 6
add eax, ecx
add eax, 2
mov ecx, dword [ebx + 0x90]
add ecx, 0xffffffec
cmp ecx, 2
ja 0x5f3aae
mov ecx, dword [ebx + 0x7c]
or ecx, 1
bsr ecx, ecx
lea ecx, [ecx + ecx*8]
add ecx, 0x49
shr ecx, 6
add eax, ecx
add eax, 2
mov edx, dword [ebx + 0x94]
add edx, 0xffffffe9
cmp edx, 5
ja case.0x5f3abc.26
jmp dword [edx*4 + 0x6d8e48]
mov ecx, dword [ebx + 0x80]
mov edx, dword [ebx + 0x84]
or ecx, 1
bsr ecx, ecx
bsr esi, edx
xor esi, 0x20
test edx, edx
cmove esi, ecx
lea ecx, [esi + esi*8]
add ecx, 0x49
jmp 0x5f3afa
mov ecx, dword [ebx + 0x80]
or ecx, 1
bsr ecx, ecx
lea ecx, [ecx + ecx*8]
add ecx, 0x49
shr ecx, 6
add eax, ecx
add eax, 2
mov edx, dword [ebx + 4]
test dl, 1
je 0x5f3b1a
and edx, 0xfffffffc
movsx esi, byte [edx + 0xf]
test esi, esi
jns 0x5f3b18
mov esi, dword [edx + 8]
add eax, esi
mov dword [ebx + 0xc], eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret