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

Disassembly:
sub esp, 0xc4
push esi
mov esi, dword [0x70b270]
test byte [esi + 0x78], 1
je 0x4b18a9
cmp eax, 0xffffffff
je 0x4b18a9
mov edx, dword [ecx + 0x34]
movsx ecx, word [ecx + 2]
lea ecx, [ecx + ecx*4]
shl ecx, 4
push ebp
mov ebp, dword [0x86cff4]
lea esi, [ecx + esi + 0x28]
and eax, 0xffff
xor ecx, ecx
push edi
mov edi, dword [0x738b8c]
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 [0x86b838]
mov cx, word [ecx + 0xc]
cmp cx, 1
jne 0x4b11f0
or edi, 2
jmp 0x4b11f3
and edi, 0xfffffffd
cmp cx, 1
jle 0x4b11fe
or edi, 4
jmp 0x4b1201
and edi, 0xfffffffb
cmp edx, 0xffffffff
mov dword [esp + 0x60], edi
je 0x4b18a7
mov ecx, dword [0x851c30]
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 0x4b127e
and eax, 0xffff
shl eax, 5
mov eax, dword [eax + ebp + 0x14]
inc edx
cmp dx, 0x10
mov dword [ecx], eax
jl 0x4b1250
test dx, dx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 0
jle 0x4b18a7
push ebx
movsx ecx, word [esp + 0x44]
mov eax, dword [esp + ecx*4 + 0x94]
mov ecx, dword [0x86b838]
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 0x4b1892
xor eax, eax
jmp 0x4b1310
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 0x4b1874
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 0x4b1874
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 0x4b1874
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 0x4b1859
test al, 4
je 0x4b13ac
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + 4]
test ecx, ecx
jle 0x4b1859
test al, 0x40
je 0x4b13bf
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 4]
test edx, edx
jne 0x4b1859
mov edx, dword [0x86b838]
cmp word [edx + 0xc], 1
jle 0x4b13da
test byte [ebp + 0xc], 2
mov dword [esp + 0x2c], 0x3f000000
je 0x4b13e2
mov dword [esp + 0x2c], 0x3f800000
test al, 2
jne 0x4b1412
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x30]
mov ecx, dword [0x86cff4]
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 0x4b141a
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x4c]
movsx ecx, dx
xor ebx, ebx
cmp ecx, 0x12
ja case.default.0x4b1433
movzx ecx, byte [ecx + 0x4b18c4]
jmp dword [ecx*4 + 0x4b18b4]
test al, 1
je 0x4b145d
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
xor ebx, ebx
test eax, eax
jle 0x4b1621
lea esi, [ebp + 0x24]
xor edi, edi
call fcn.004a9e50
jmp 0x4b1624
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0x24]
mov bx, word [ecx]
mov dword [esp + 0x1c], edx
jmp case.default.0x4b1433
test al, 0x20
mov ecx, dword [esp + 0x20]
je 0x4b1485
cmp dword [ecx], 0
je 0x4b1859
xor ebx, ebx
jmp 0x4b1493
mov bx, word [ecx]
mov edx, eax
shr edx, 2
and edx, 1
sub bx, dx
test al, 1
je 0x4b1621
mov edx, dword [esp + 0x28]
cmp dword [edx], 0
jle 0x4b1621
lea esi, [ebp + 0x24]
xor edi, edi
call fcn.004a9e50
jmp 0x4b1624
cmp dx, 0x12
jne 0x4b14f7
fld dword [0x66c40c]
mov ecx, dword [esp + 0xd8]
fld dword [ecx + 4]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4b1574
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 0x208]
test ah, 8
je 0x4b1574
mov byte [esp + 0x13], 1
jmp 0x4b15b1
cmp dx, 8
jne 0x4b152a
mov eax, dword [esp + 0xd8]
cmp word [eax + 0xe], 0
jne 0x4b1574
cmp word [eax + 0x12], 0
jne 0x4b1574
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x208]
test dl, ch
je 0x4b1574
mov byte [esp + 0x13], 1
jmp 0x4b15b1
cmp dx, 9
jne 0x4b157b
mov esi, dword [esp + 0x48]
mov al, 1
lea ecx, [esi + 0x31e]
mov edx, 2
test al, al
je 0x4b154e
cmp byte [ecx], 0
jne 0x4b154e
mov al, 1
jmp 0x4b1550
xor al, al
inc ecx
dec edx
jne 0x4b1541
test al, al
je 0x4b1574
mov al, byte [esi + 0x28d]
test al, al
jne 0x4b1574
mov eax, dword [esi + 0x208]
test ah, 0x20
je 0x4b1574
mov byte [esp + 0x13], 1
jmp 0x4b15b1
mov byte [esp + 0x13], 0
jmp 0x4b1583
mov al, byte [esp + 0x13]
test al, al
jne 0x4b15b1
fld dword [ebp + 0x2c]
mov ecx, dword [0x6eb40c]
fmul dword [0x66c414]
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 0x4b15ba
mov ecx, dword [esp + 0x20]
cmp dword [ecx], 0xffffffff
jne case.0x4b1433.2
mov dword [ecx], 0xffffffff
jmp 0x4b1859
mov cx, word [ebp + 0x44]
test cx, cx
jle 0x4b1604
mov edx, dword [0x6eb40c]
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 0x4b1606
xor ebx, ebx
test byte [ebp + 0x48], 1
je 0x4b1621
mov edx, dword [esp + 0x20]
mov edi, dword [edx]
cmp edi, 0xffffffff
je 0x4b1621
lea esi, [ebp + 0x24]
call fcn.004a9e50
jmp 0x4b1624
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x30]
mov eax, dword [0x86cff4]
and edx, 0xffff
shl edx, 5
mov edi, dword [edx + eax + 0x14]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b165a
movsx ecx, bx
mov edx, eax
mov eax, dword [edx + 0x38]
shl ecx, 5
movsx esi, word [ecx + eax]
jmp 0x4b165e
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.00444690
add esp, 8
test eax, eax
je 0x4b1859
test byte [ebp + 0x48], 0x10
je 0x4b1813
cmp word [edi], 4
fld dword [0x66c410]
mov ecx, dword [esp + 0x14]
sete al
test ecx, ecx
mov dword [esp + 0x60], 0x3f800000
je 0x4b16d3
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 0x4b176d
test al, al
fstp st(0)
mov dword [esp + 0x30], 0
je 0x4b16eb
movsx ecx, word [esi + 4]
mov dword [esp + 0x14], ecx
jmp 0x4b16f3
mov dword [esp + 0x14], 1
test al, al
fild dword [esp + 0x14]
mov dword [esp + 0x38], 0
fstp dword [esp + 0x34]
je 0x4b1711
movsx edx, word [esi + 6]
mov dword [esp + 0x14], edx
jmp 0x4b1719
mov dword [esp + 0x14], 1
test al, al
fild dword [esp + 0x14]
fstp dword [esp + 0x3c]
je 0x4b172d
fld qword [0x66c440]
jmp 0x4b1745
movsx ecx, word [esi + 4]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fdivr dword [0x66c410]
fmul qword [0x66cb58]
test al, al
fstp dword [esp + 0x60]
je 0x4b1755
fld qword [0x66c440]
jmp 0x4b176d
movsx edx, word [esi + 6]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fdivr dword [0x66c410]
fmul qword [0x66cb58]
fld dword [0x66c410]
movsx ecx, word [esi + 4]
fdiv dword [esp + 0x2c]
movsx edx, word [0x7b49c2]
mov dword [esp + 0x18], ecx
movsx ecx, word [0x7b49c6]
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 [0x7b49c0]
mov dword [esp + 0x18], edx
movsx edx, word [0x7b49c4]
fmul st(2)
sub edx, ecx
fsubp st(1)
fmul dword [esp + 0x60]
fmul dword [0x66c53c]
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 [0x66c53c]
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 0x4b1833
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b182a
mov edx, dword [eax + 0x38]
movsx ecx, bx
shl ecx, 5
lea eax, [ecx + edx + 8]
jmp 0x4b182c
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.004aafa0
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 0x4b1382
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 0x4b1310
mov eax, dword [esp + 0x44]
inc eax
cmp ax, word [esp + 0x40]
mov dword [esp + 0x44], eax
jl 0x4b1294
pop ebx
pop edi
pop ebp
pop esi
add esp, 0xc4
ret