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

Disassembly:
sub esp, 0x16c
mov eax, dword [esp + 0x178]
mov ecx, dword [eax + 0x510]
push ebx
mov ebx, dword [esp + 0x180]
push ebp
mov ebp, dword [eax + 0x504]
push esi
mov esi, dword [esp + 0x180]
mov edx, dword [esi + 0x40]
mov eax, dword [edx + 4]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 0xb20]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
test ebx, ebx
je 0x4b6077
push edi
xor edi, edi
test ebp, ebp
jle 0x4b5b73
jmp 0x4b5b20
mov edx, dword [esp + 0x10]
mov esi, dword [ebx + edi*4]
mov eax, dword [edx + 0x340]
mov ecx, esi
dec eax
and ecx, 0x7fff
cmp eax, 3
ja case.default.0x4b5b3b
jmp dword [eax*4 + 0x4b60b4]
sar ecx, 2
jmp case.default.0x4b5b3b
sar ecx, 3
jmp case.default.0x4b5b3b
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
jmp case.default.0x4b5b3b
sar ecx, 4
and esi, 0x8000
or esi, ecx
mov dword [ebx + edi*4], esi
inc edi
cmp edi, ebp
jl 0x4b5b20
cmp ebp, 2
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
jle 0x4b5cbc
mov edx, dword [esp + 0x10]
mov ecx, ebx
lea eax, [ecx + 8]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x188]
add eax, 0x30c
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x78]
add edx, 0x34c
sub eax, ecx
add ebp, 0xfffffffe
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x1c]
mov ebp, dword [eax + 0xfc]
mov ebx, dword [eax]
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx + ebp*4 + 0x344]
mov eax, dword [esp + 0x18c]
mov esi, dword [eax + ebp*4]
mov ecx, dword [eax + ebx*4]
and esi, 0x7fff
and ecx, 0x7fff
sub ecx, esi
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x14]
mov edx, dword [edx]
sub edx, edi
imul eax, edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + ebx*4 + 0x344]
sub edx, edi
mov edi, edx
cdq
idiv edi
test ecx, ecx
jge 0x4b5c21
mov ecx, esi
sub ecx, eax
jmp 0x4b5c24
lea ecx, [eax + esi]
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
test eax, 0x8000
jne 0x4b5c8b
cmp ecx, eax
je 0x4b5c8b
mov edx, dword [esp + 0x188]
mov edx, dword [edx + 0x50c]
sub edx, ecx
cmp edx, ecx
jl 0x4b5c4a
mov edx, ecx
sub eax, ecx
jns 0x4b5c67
mov ecx, edx
neg ecx
cmp eax, ecx
jge 0x4b5c5d
sub edx, eax
dec edx
mov eax, edx
jmp 0x4b5c71
lea edx, [eax + eax]
or eax, 0xffffffff
sub eax, edx
jmp 0x4b5c71
cmp eax, edx
jl 0x4b5c6f
add eax, edx
jmp 0x4b5c71
add eax, eax
mov ecx, dword [esp + 0x18]
mov dword [ecx + edi], eax
mov eax, dword [esp + 0x18c]
mov dword [eax + ebp*4], esi
and dword [eax + ebx*4], 0x7fff
jmp 0x4b5c9e
mov edx, dword [esp + 0x18]
or ecx, 0x8000
mov dword [edi], ecx
mov dword [edx + edi], 0
mov eax, 4
add dword [esp + 0x1c], eax
add dword [esp + 0x14], eax
add edi, eax
sub dword [esp + 0x24], 1
mov dword [esp + 0x20], edi
jne 0x4b5bc1
mov edi, dword [esp + 0x180]
push 1
push 1
push edi
call fcn.00401be0
mov esi, dword [esp + 0x194]
mov eax, dword [esi + 0x50c]
inc dword [esi + 0x51c]
lea edx, [eax - 1]
mov eax, edx
add esp, 0xc
xor ecx, ecx
test eax, eax
je 0x4b5cf5
mov edi, edi
inc ecx
shr eax, 1
jne 0x4b5cf0
lea eax, [ecx + ecx]
add dword [esi + 0x518], eax
xor eax, eax
test edx, edx
je 0x4b5d09
inc eax
shr edx, 1
jne 0x4b5d04
mov ecx, dword [esp + 0x78]
push eax
push ecx
push edi
call fcn.00401be0
mov esi, dword [esi + 0x50c]
add esp, 0xc
sub esi, 1
mov eax, 0
je 0x4b5d2d
inc eax
shr esi, 1
jne 0x4b5d28
mov edx, dword [esp + 0x7c]
push eax
push edx
push edi
call fcn.00401be0
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp dword [eax], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], 2
jle 0x4b5f7e
mov ecx, eax
add ecx, 4
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov ecx, dword [esp + 0x10]
mov ebp, dword [ecx + eax*4 + 0xc0]
mov edx, dword [ecx + eax*4 + 0x80]
xor edi, edi
mov esi, 1
mov ecx, ebp
shl esi, cl
xor ebx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x2c], edi
cmp ebp, edi
je 0x4b5eb2
xor eax, eax
cmp esi, edi
jle 0x4b5dfb
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
add edx, 0xa
shl edx, 5
add edx, dword [esp + 0x10]
mov edi, dword [edx]
test edi, edi
jge 0x4b5de3
mov dword [esp + eax*4 + 0x58], 1
jmp 0x4b5df1
mov edi, dword [ecx + edi*4 + 0x720]
mov edi, dword [edi + 4]
mov dword [esp + eax*4 + 0x58], edi
inc eax
add edx, 4
cmp eax, esi
jl 0x4b5dd3
xor edi, edi
xor edx, edx
cmp dword [esp + 0x1c], edi
jle 0x4b5e4d
mov eax, dword [esp + 0x14]
lea ecx, [esp + eax*4 + 0x78]
mov dword [esp + 0x24], ecx
nop
xor eax, eax
cmp esi, edi
jle 0x4b5e31
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx]
lea esp, [esp]
cmp ecx, dword [esp + eax*4 + 0x58]
jl 0x4b5e2d
inc eax
cmp eax, esi
jl 0x4b5e20
jmp 0x4b5e31
mov dword [esp + edx*4 + 0x38], eax
mov eax, dword [esp + edx*4 + 0x38]
mov ecx, dword [esp + 0x2c]
add dword [esp + 0x2c], ebp
add dword [esp + 0x24], 4
shl eax, cl
inc edx
or ebx, eax
cmp edx, dword [esp + 0x1c]
jl 0x4b5e10
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + ecx*4 + 0x100]
mov edx, dword [esp + 0x30]
lea ecx, [eax*8]
sub ecx, eax
cmp ebx, edi
lea esi, [edx + ecx*8]
jl 0x4b5ea3
mov eax, dword [esi + 0xc]
cmp ebx, dword [eax + 4]
jge 0x4b5ea3
mov eax, dword [eax + 8]
movsx ecx, byte [eax + ebx]
mov edx, dword [esi + 0x14]
mov eax, dword [edx + ebx*4]
push ecx
mov ecx, dword [esp + 0x184]
push eax
push ecx
call fcn.00401be0
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 8]
movsx eax, byte [eax + ebx]
add esp, 0xc
jmp 0x4b5ea5
xor eax, eax
mov ecx, dword [esp + 0x188]
add dword [ecx + 0x514], eax
xor ebx, ebx
cmp dword [esp + 0x1c], edi
jle 0x4b5f5c
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
lea edx, [ecx*8 + 0x50]
mov dword [esp + 0x20], edx
lea ebp, [esp + ebp*4 + 0x78]
jmp 0x4b5ee0
mov eax, dword [esp + ebx*4 + 0x38]
add eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + eax*4]
test eax, eax
jl 0x4b5f52
mov esi, dword [ebp]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [esp + 0x30]
cmp esi, dword [eax + edx*8 + 4]
lea edi, [eax + edx*8]
jge 0x4b5f52
test esi, esi
jl 0x4b5f43
mov eax, dword [edi + 0xc]
cmp esi, dword [eax + 4]
jge 0x4b5f43
mov ecx, dword [eax + 8]
movsx edx, byte [ecx + esi]
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + esi*4]
push edx
mov edx, dword [esp + 0x184]
push ecx
push edx
call fcn.00401be0
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + 8]
movsx eax, byte [ecx + esi]
add esp, 0xc
jmp 0x4b5f45
xor eax, eax
mov ecx, dword [esp + 0x188]
add dword [ecx + 0x518], eax
inc ebx
add ebp, 4
cmp ebx, dword [esp + 0x1c]
jl 0x4b5ee0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
add dword [esp + 0x14], edx
add dword [esp + 0x18], 4
inc eax
cmp eax, dword [ecx]
mov dword [esp + 0x28], eax
jl 0x4b5d62
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x340]
mov eax, dword [esp + 0x18c]
imul ecx, dword [eax]
mov esi, dword [esp + 0x184]
mov edx, dword [esi + 0x1c]
mov eax, dword [esp + 0x34]
mov eax, dword [eax + edx*4]
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x188]
mov edx, 1
xor edi, edi
xor ebp, ebp
sar ebx, 1
cmp dword [eax + 0x504], edx
mov dword [esp + 0x14], edx
jle 0x4b603e
add eax, 0x108
mov dword [esp + 0x18], eax
nop
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x18c]
mov edx, dword [edx]
mov esi, dword [eax + edx*4]
mov eax, esi
and eax, 0x7fff
cmp eax, esi
jne 0x4b601a
mov edi, dword [esp + 0x10]
mov esi, dword [edi + 0x340]
mov edi, dword [edi + edx*4 + 0x344]
imul esi, eax
mov edx, dword [esp + 0x190]
push edx
push ecx
push ebp
push ebx
mov eax, esi
mov ecx, edi
call fcn.004b55c0
add esp, 0x10
mov ebp, edi
mov ecx, esi
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x188]
add dword [esp + 0x18], 4
inc eax
cmp eax, dword [edx + 0x504]
mov dword [esp + 0x14], eax
jl 0x4b5fd0
mov esi, dword [esp + 0x184]
mov eax, dword [esi + 0x24]
cdq
sub eax, edx
sar eax, 1
cmp edi, eax
jge 0x4b6067
lea ebx, [ebx]
mov eax, dword [esp + 0x190]
mov dword [eax + edi*4], ecx
mov eax, dword [esi + 0x24]
cdq
sub eax, edx
inc edi
sar eax, 1
cmp edi, eax
jl 0x4b6050
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x16c
ret
mov ecx, dword [esp + 0x17c]
push 1
push 0
push ecx
call fcn.00401be0
mov eax, dword [esi + 0x24]
cdq
sub eax, edx
mov edx, dword [esp + 0x198]
sar eax, 1
add eax, eax
add eax, eax
push eax
push 0
push edx
call fcn.00496bf0
add esp, 0x18
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x16c
ret