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

Disassembly:
sub esp, 0xc4
push esi
mov esi, dword [0x6b43f8]
test byte [esi + 0x78], 1
je 0x4b68d9
cmp eax, 0xffffffff
je 0x4b68d9
mov edx, dword [ecx + 0x34]
movsx ecx, word [ecx + 2]
lea ecx, [ecx + ecx*4]
shl ecx, 4
push ebp
mov ebp, dword [0x816d04]
lea esi, [ecx + esi + 0x28]
and eax, 0xffff
xor ecx, ecx
push edi
mov edi, dword [0x6e218c]
shl eax, 5
cmp word [edi + 0x3c], 2
mov eax, dword [eax + ebp + 0x14]
setne cl
mov dword [esp + 0x24], esi
mov edi, ecx
mov ecx, dword [0x8154d8]
mov cx, word [ecx + 0xc]
cmp cx, 1
jne 0x4b6220
or edi, 2
jmp 0x4b6223
and edi, 0xfffffffd
cmp cx, 1
jle 0x4b622e
or edi, 4
jmp 0x4b6231
and edi, 0xfffffffb
cmp edx, 0xffffffff
mov dword [esp + 0x60], edi
je 0x4b68d7
mov ecx, dword [0x7fb2d0]
mov ecx, dword [ecx + 0x34]
and edx, 0xffff
lea edx, [edx + edx*2]
mov edx, dword [ecx + edx*4 + 8]
mov dword [esp + 0x90], eax
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x94]
mov dword [esp + 0x44], edx
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x4c]
mov edx, 1
mov dword [esp + 0x64], eax
mov dword [esp + 0x3c], edx
nop
movsx ecx, dx
mov eax, dword [esp + ecx*4 + 0x8c]
mov eax, dword [eax + 0xc]
cmp eax, 0xffffffff
lea ecx, [esp + ecx*4 + 0x90]
je 0x4b62ae
and eax, 0xffff
shl eax, 5
mov eax, dword [eax + ebp + 0x14]
inc edx
cmp dx, 0x10
mov dword [ecx], eax
jl 0x4b6280
test dx, dx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 0
jle 0x4b68d7
push ebx
movsx ecx, word [esp + 0x44]
mov eax, dword [esp + ecx*4 + 0x94]
mov ecx, dword [0x8154d8]
xor edx, edx
cmp word [ecx + 0xc], 1
mov ecx, dword [eax + 0x84]
mov dword [esp + 0x72], edx
mov dword [esp + 0x76], edx
mov dword [esp + 0x7a], edx
mov dword [esp + 0x7e], edx
mov dword [esp + 0x82], edx
mov dword [esp + 0x86], edx
mov dword [esp + 0x8a], edx
mov dword [esp + 0x8e], edx
mov word [esp + 0x92], dx
setg dl
test ecx, ecx
mov dword [esp + 0x54], eax
mov word [esp + 0x70], 4
mov byte [esp + 0x5c], dl
mov dword [esp + 0x50], 0
jle 0x4b68c2
xor eax, eax
jmp 0x4b6340
mov ecx, dword [esp + 0x54]
imul eax, eax, 0x68
add eax, dword [ecx + 0x88]
mov dword [esp + 0x24], eax
movsx eax, word [eax]
movsx ecx, ax
mov edx, 1
shl edx, cl
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x68]
test eax, edx
je 0x4b68a4
mov eax, dword [esp + 0x24]
mov cl, byte [eax + 4]
mov edx, 1
shl edx, cl
movsx ecx, word [esp + 0x64]
test ecx, edx
je 0x4b68a4
movsx edx, word [esp + 0x4c]
mov eax, dword [esp + 0x28]
lea ecx, [eax + edx*4]
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x34]
test eax, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x58], 0
jle 0x4b68a4
xor eax, eax
mov ecx, dword [esp + 0x24]
imul eax, eax, 0x6c
add eax, dword [ecx + 0x38]
mov ebp, eax
mov eax, dword [ebp + 0x48]
test al, al
js 0x4b6889
test al, 4
je 0x4b63dc
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + 4]
test ecx, ecx
jle 0x4b6889
test al, 0x40
je 0x4b63ef
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 4]
test edx, edx
jne 0x4b6889
mov edx, dword [0x8154d8]
cmp word [edx + 0xc], 1
jle 0x4b640a
test byte [ebp + 0xc], 2
mov dword [esp + 0x2c], 0x3f000000
je 0x4b6412
mov dword [esp + 0x2c], 0x3f800000
test al, 2
jne 0x4b6442
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x30]
mov ecx, dword [0x816d04]
and edx, 0xffff
shl edx, 5
mov edx, dword [edx + ecx + 0x14]
movsx ecx, word [ebp + 0x46]
mov esi, dword [edx + 0x58]
shl ecx, 6
add ecx, esi
mov dword [esp + 0x14], ecx
jmp 0x4b644a
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x4c]
movsx ecx, dx
xor ebx, ebx
cmp ecx, 0x12
ja case.default.0x4b6463
movzx ecx, byte [ecx + 0x4b68f4]
jmp dword [ecx*4 + 0x4b68e4]
test al, 1
je 0x4b648d
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
xor ebx, ebx
test eax, eax
jle 0x4b6651
lea esi, [ebp + 0x24]
xor edi, edi
call fcn.004aee80
jmp 0x4b6654
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0x24]
mov bx, word [ecx]
mov dword [esp + 0x1c], edx
jmp case.default.0x4b6463
test al, 0x20
mov ecx, dword [esp + 0x20]
je 0x4b64b5
cmp dword [ecx], 0
je 0x4b6889
xor ebx, ebx
jmp 0x4b64c3
mov bx, word [ecx]
mov edx, eax
shr edx, 2
and edx, 1
sub bx, dx
test al, 1
je 0x4b6651
mov edx, dword [esp + 0x28]
cmp dword [edx], 0
jle 0x4b6651
lea esi, [ebp + 0x24]
xor edi, edi
call fcn.004aee80
jmp 0x4b6654
cmp dx, 0x12
jne 0x4b6527
fld dword [0x612220]
mov ecx, dword [esp + 0xd8]
fld dword [ecx + 4]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4b65a4
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 0x208]
test ah, 8
je 0x4b65a4
mov byte [esp + 0x13], 1
jmp 0x4b65e1
cmp dx, 8
jne 0x4b655a
mov eax, dword [esp + 0xd8]
cmp word [eax + 0xe], 0
jne 0x4b65a4
cmp word [eax + 0x12], 0
jne 0x4b65a4
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x208]
test dl, ch
je 0x4b65a4
mov byte [esp + 0x13], 1
jmp 0x4b65e1
cmp dx, 9
jne 0x4b65ab
mov esi, dword [esp + 0x48]
mov al, 1
lea ecx, [esi + 0x31e]
mov edx, 2
test al, al
je 0x4b657e
cmp byte [ecx], 0
jne 0x4b657e
mov al, 1
jmp 0x4b6580
xor al, al
inc ecx
dec edx
jne 0x4b6571
test al, al
je 0x4b65a4
mov al, byte [esi + 0x28d]
test al, al
jne 0x4b65a4
mov eax, dword [esi + 0x208]
test ah, 0x20
je 0x4b65a4
mov byte [esp + 0x13], 1
jmp 0x4b65e1
mov byte [esp + 0x13], 0
jmp 0x4b65b3
mov al, byte [esp + 0x13]
test al, al
jne 0x4b65e1
fld dword [ebp + 0x2c]
mov ecx, dword [0x68cca8]
fmul dword [0x612228]
mov eax, dword [ecx + 0xc]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x6c]
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx]
mov edx, dword [esp + 0x6c]
sub eax, esi
cmp eax, edx
jge 0x4b65ea
mov ecx, dword [esp + 0x20]
cmp dword [ecx], 0xffffffff
jne case.0x4b6463.2
mov dword [ecx], 0xffffffff
jmp 0x4b6889
mov cx, word [ebp + 0x44]
test cx, cx
jle 0x4b6634
mov edx, dword [0x68cca8]
mov eax, dword [edx + 0xc]
mov edx, dword [esp + 0x20]
sub eax, dword [edx]
cdq
movsx ecx, cx
idiv ecx
mov ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
mov ecx, dword [esp + 0x14]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
idiv dword [ecx + 0x34]
mov ebx, edx
jmp 0x4b6636
xor ebx, ebx
test byte [ebp + 0x48], 1
je 0x4b6651
mov edx, dword [esp + 0x20]
mov edi, dword [edx]
cmp edi, 0xffffffff
je 0x4b6651
lea esi, [ebp + 0x24]
call fcn.004aee80
jmp 0x4b6654
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x30]
mov eax, dword [0x816d04]
and edx, 0xffff
shl edx, 5
mov edi, dword [edx + eax + 0x14]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b668a
movsx ecx, bx
mov edx, eax
mov eax, dword [edx + 0x38]
shl ecx, 5
movsx esi, word [ecx + eax]
jmp 0x4b668e
movsx esi, word [ebp + 0x46]
mov edx, dword [edi + 0x64]
lea esi, [esi + esi*2]
shl esi, 4
add esi, edx
push 1
push 0
mov eax, esi
call fcn.00445080
add esp, 8
test eax, eax
je 0x4b6889
test byte [ebp + 0x48], 0x10
je 0x4b6843
cmp word [edi], 4
fld dword [0x612224]
mov ecx, dword [esp + 0x14]
sete al
test ecx, ecx
mov dword [esp + 0x60], 0x3f800000
je 0x4b6703
mov ecx, dword [ecx + 0x38]
movsx edx, bx
shl edx, 5
lea edx, [edx + ecx + 8]
mov ecx, dword [edx]
mov dword [esp + 0x30], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x34], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
jmp 0x4b679d
test al, al
fstp st(0)
mov dword [esp + 0x30], 0
je 0x4b671b
movsx ecx, word [esi + 4]
mov dword [esp + 0x14], ecx
jmp 0x4b6723
mov dword [esp + 0x14], 1
test al, al
fild dword [esp + 0x14]
mov dword [esp + 0x38], 0
fstp dword [esp + 0x34]
je 0x4b6741
movsx edx, word [esi + 6]
mov dword [esp + 0x14], edx
jmp 0x4b6749
mov dword [esp + 0x14], 1
test al, al
fild dword [esp + 0x14]
fstp dword [esp + 0x3c]
je 0x4b675d
fld qword [0x612258]
jmp 0x4b6775
movsx ecx, word [esi + 4]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fdivr dword [0x612224]
fmul qword [0x612968]
test al, al
fstp dword [esp + 0x60]
je 0x4b6785
fld qword [0x612258]
jmp 0x4b679d
movsx edx, word [esi + 6]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fdivr dword [0x612224]
fmul qword [0x612968]
fld dword [0x612224]
movsx ecx, word [esi + 4]
fdiv dword [esp + 0x2c]
movsx edx, word [0x75e062]
mov dword [esp + 0x18], ecx
movsx ecx, word [0x75e066]
sub ecx, edx
movsx edx, word [esi + 6]
mov bl, al
lea eax, [esp + 0x30]
fild dword [esp + 0x18]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
movsx ecx, word [0x75e060]
mov dword [esp + 0x18], edx
movsx edx, word [0x75e064]
fmul st(2)
sub edx, ecx
fsubp st(1)
fmul dword [esp + 0x60]
fmul dword [0x612354]
fstp dword [esp + 0x14]
fild dword [esp + 0x18]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fmul st(2)
fsubp st(1)
fmulp st(2)
fxch st(1)
fmul dword [0x612354]
fstp st(1)
fld dword [esp + 0x30]
fsub dword [esp + 0x14]
fstp dword [esp + 0x30]
fld dword [esp + 0x14]
fadd dword [esp + 0x34]
fstp dword [esp + 0x34]
fld dword [esp + 0x38]
fsub st(1)
fstp dword [esp + 0x38]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x3c]
jmp 0x4b6863
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b685a
mov edx, dword [eax + 0x38]
movsx ecx, bx
shl ecx, 5
lea eax, [ecx + edx + 8]
jmp 0x4b685c
xor eax, eax
cmp word [edi], 4
sete bl
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push 0
push ecx
lea edx, [esp + 0x80]
push edx
push esi
mov edx, ebp
push 0
call fcn.004affd0
add esp, 0x1c
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x34]
inc eax
mov dword [esp + 0x58], eax
movsx eax, ax
cmp eax, edx
jl 0x4b63b2
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov ecx, dword [edx + 0x84]
inc eax
mov dword [esp + 0x50], eax
movsx eax, ax
cmp eax, ecx
jl 0x4b6340
mov eax, dword [esp + 0x44]
inc eax
cmp ax, word [esp + 0x40]
mov dword [esp + 0x44], eax
jl 0x4b62c4
pop ebx
pop edi
pop ebp
pop esi
add esp, 0xc4
ret