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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x27c]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x28], edi
jne 0x4bd613
mov dword [edi + 0x27c], 4
mov eax, dword [esp + 0x74]
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.0048a300
mov ecx, eax
add esp, 4
and ecx, 0xf00
je 0x4bd651
cmp ecx, 0x100
je 0x4bd663
cmp ecx, 0x200
jne 0x4bd663
mov esi, 0x6be480
jmp 0x4bd668
cmp eax, ebx
jl 0x4bd663
cmp eax, 0x21
jge 0x4bd663
mov esi, dword [eax*4 + 0x6b95c8]
jmp 0x4bd668
mov esi, 0x6be490
mov ecx, dword [0x725c74]
mov eax, 0x36b06e71
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x11
add eax, 0x13
xor edx, edx
mov ecx, 0x18
div ecx
mov eax, dword [edi + 0x27c]
mov dword [esp + 0x20], 4
cmp edx, 0xc
seta byte [esp + 0x74]
cmp eax, 4
jg 0x4bd6ab
mov dword [esp + 0x20], eax
mov edx, dword [esi]
mov esi, dword [esi + 8]
lea eax, [esp + 0x34]
push eax
mov ecx, edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
call fcn.004b3090
lea ebp, [esp + 0x44]
mov esi, 0x6de498
cmp word [esi + 0x66], 0
jge 0x4bd6e1
cmp dword [esi], 0
je 0x4bd86f
test byte [esi + 0x62], 1
jne 0x4bd86f
movsx edi, word [esi + 0x60]
test edi, edi
jl 0x4bd715
mov eax, 1
xor edx, edx
mov ecx, edi
call fcn.006721f0
mov ecx, dword [esp + 0x18]
or ecx, eax
mov eax, dword [esp + 0x1c]
or eax, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov dword [ebp], edi
add esi, 0xd4
add ebp, 4
cmp esi, 0x6dea64
jl 0x4bd6d1
mov eax, dword [esp + 0x14]
xor ebp, ebp
test eax, eax
jle 0x4bd7ca
mov edi, dword [esp + 0x24]
jmp 0x4bd740
movsx ecx, word [edi]
mov esi, ecx
shl esi, 4
mov eax, 1
xor edx, edx
add esi, 0x6bb900
call fcn.006721f0
and eax, dword [esp + 0x18]
and edx, dword [esp + 0x1c]
or eax, edx
jne 0x4bd793
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
and eax, ebx
mov ebx, dword [esp + 0x34]
and ecx, edx
mov edx, dword [esi]
mov esi, dword [esi + 4]
and edx, ebx
and esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x2c]
or eax, edx
or ecx, esi
or eax, ecx
jne 0x4bd7ba
mov eax, 1
xor edx, edx
mov ecx, ebp
call fcn.006721f0
mov ecx, dword [esp + 0x30]
or ebx, eax
mov eax, dword [esp + 0x10]
or ecx, edx
dec eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
inc ebp
add edi, 6
cmp ebp, eax
jl 0x4bd740
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, eax
je 0x4bd8db
mov dword [esp + 0x18], 0x6de4fa
cmp edi, dword [esp + 0x20]
jge 0x4bd8db
mov eax, dword [esp + edi*4 + 0x44]
test eax, eax
jge 0x4bd8c0
mov eax, dword [esp + 0x18]
test byte [eax], 0xc
jne 0x4bd8c0
call fcn.005f2010
imul dword [esp + 0x14]
push 0
push bind
push edx
push eax
call fcn.00671360
mov esi, eax
mov eax, 1
xor edx, edx
mov ecx, esi
call fcn.006721f0
mov ebp, dword [esp + 0x30]
and eax, ebx
and edx, ebp
or eax, edx
je 0x4bd857
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jl 0x4bd841
xor esi, esi
mov eax, 1
xor edx, edx
mov ecx, esi
call fcn.006721f0
and eax, ebx
and edx, ebp
or eax, edx
jne 0x4bd836
mov al, byte [esp + 0x74]
test al, al
mov edx, dword [esp + 0x24]
lea ecx, [esi + esi*2]
lea ecx, [edx + ecx*2]
je 0x4bd877
mov ax, word [ecx + 4]
jmp 0x4bd87b
or edi, 0xffffffff
jmp 0x4bd715
mov ax, word [ecx + 2]
movsx eax, ax
cmp eax, 1
jge 0x4bd888
mov eax, 1
mov edx, dword [esp + 0x78]
push edx
push eax
movsx eax, word [ecx]
push eax
lea ecx, [edi + 1]
push ecx
mov ecx, dword [esp + 0x38]
push 0
call fcn.004bd3b0
mov eax, 1
xor edx, edx
mov ecx, esi
call fcn.006721f0
or ebx, eax
mov eax, dword [esp + 0x10]
or ebp, edx
dec eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add ecx, 0xd4
inc edi
test eax, eax
mov dword [esp + 0x18], ecx
jne 0x4bd7e0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret 0xc