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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50b00b
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x53bbf0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
xor edx, edx
cmp dword [esi + 0x3c], edx
jne 0x460bda
mov ecx, dword [esi + 0x58]
cmp ecx, edx
mov eax, dword [ebp + 8]
jle 0x46026b
add eax, ecx
mov dword [ebp + 8], eax
mov dword [esi + 0x58], edx
mov ecx, dword [esi + 0x38]
movsx ecx, word [ecx + 0x334]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x563908]
mov ecx, dword [ecx + 0x17a8]
mov ecx, dword [ecx + 0x6728]
cmp ecx, edx
mov dword [esp + 0x2c], ecx
jne 0x460297
mov dword [esp + 0x24], edx
cmp eax, edx
jg 0x4602b7
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor edx, edx
cmp eax, 5
jl 0x4602c1
mov eax, 5
cmp eax, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x38], edx
jle 0x460986
mov edx, dword [ebp + 8]
add edx, 0xffffffff
mov dword [esp + 0x18], edx
nop
add dword [esi + 0x5c], 1
mov edi, dword [esi + 0x38]
mov eax, dword [edi + 0x344]
mov ecx, dword [esi + 0x5c]
cdq
xor eax, edx
sub eax, edx
cmp ecx, eax
jle 0x460303
cmp dword [esi + 0x6c], 0
jl 0x460bc5
cmp ecx, dword [edi + 0x358]
jge 0x46036d
cmp ecx, dword [edi + 0x354]
jl 0x46036d
mov ecx, dword [esi + 0x68]
fild dword [esi + 0x4c]
mov eax, dword [esi + 0x54]
lea eax, [ecx + eax + 0x3a980]
cdq
mov ebx, 0x3a980
idiv ebx
mov eax, 0x10624dd3
mov dword [esi + 0x54], edx
mov edx, dword [edi + 0x360]
add edx, ecx
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x68], edx
imul ecx
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
fld qword [edi*8 + 0x562808]
fmul st(1)
call fcn.004c2db0
mov dword [esi + 0x40], eax
fmul qword [edi*8 + 0x563188]
call fcn.004c2db0
mov dword [esi + 0x44], eax
xor ebx, ebx
cmp dword [esp + 0x24], ebx
je 0x460465
cmp dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
jle 0x460465
mov dword [esp + 0x14], 0x6328
nop
mov edx, dword [0x563908]
mov eax, dword [edx + 0x17a8]
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx + eax]
mov ecx, dword [esi + 0x18]
sub ecx, dword [edi + 0x18]
mov eax, 0x68db8bad
imul ecx
sar edx, 0xc
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esi + 0x1c]
sub edx, dword [edi + 0x1c]
mov eax, 0x68db8bad
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x48], eax
imul eax, eax
mov edx, ecx
imul edx, ecx
add eax, edx
cmp eax, ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x3c], eax
jle 0x460449
cmp eax, dword [edi + 0x10]
jge 0x460449
fild dword [esp + 0x3c]
fst qword [esp + 0x3c]
call fcn.004c53a0
mov eax, dword [edi + 8]
fld st(0)
movsx ebx, word [eax + 0x2c]
call fcn.004c2db0
cmp eax, ebx
jl 0x460bf4
fild dword [esp + 0x44]
fdiv st(1)
fimul dword [edi + 0x14]
fld qword [esp + 0x3c]
fdiv st(1), st(0)
fxch st(1)
call fcn.004c2db0
fild dword [esp + 0x48]
sub dword [esi + 0x40], eax
fdivrp st(2)
fild dword [edi + 0x14]
fmulp st(2)
fdivp st(1)
call fcn.004c2db0
sub dword [esi + 0x44], eax
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x28]
add dword [esp + 0x14], 4
add eax, 1
xor ebx, ebx
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
jl 0x460390
cmp dword [esi + 0x50], ebx
je 0x460583
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
push eax
push eax
push ecx
push edx
mov edx, dword [0x563908]
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [edx + 0x1790]
call fcn.004b59c0
mov eax, dword [esi + 0x50]
add dword [esi + 0x48], eax
mov eax, dword [esi + 0x48]
add dword [esi + 0x20], eax
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x4c]
cmp ecx, edx
jl 0x4604b9
mov edx, dword [esp + 0x50]
cmp ecx, edx
jle 0x460583
add edx, edx
sub edx, ecx
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x20], edx
movsx edx, word [ecx + 0x33a]
imul edx, eax
mov eax, 0xef9db22d
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esi + 0x48], eax
movsx edx, word [ecx + 0x33c]
imul edx, dword [esi + 0x40]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esi + 0x40], eax
movsx edx, word [ecx + 0x33c]
imul edx, dword [esi + 0x44]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x64]
cmp eax, ebx
jg 0x46053f
cmp word [ecx + 0x33e], bx
jge 0x460bd1
mov dword [esi + 0x48], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x50], ebx
mov ecx, dword [esi + 0x80]
add eax, 0xffffffff
cmp ecx, ebx
mov dword [esi + 0x64], eax
je 0x460583
mov edx, dword [esi + 0x1c]
mov eax, 0x68db8bad
imul edx
push ebx
push ebx
sar edx, 0xc
push ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esi + 0x18]
push ebx
push ebx
push eax
mov eax, 0x68db8bad
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.004a6e90
mov ecx, dword [esi + 0x38]
movsx edx, word [ecx + 0x318]
imul edx, dword [esi + 0x40]
lea edi, [esi + 0x40]
mov eax, 0x68db8bad
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [edi], eax
movsx edx, word [ecx + 0x318]
imul edx, dword [esi + 0x44]
lea ebx, [esi + 0x44]
mov eax, 0x68db8bad
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebx], eax
movsx edx, word [ecx + 0x318]
imul edx, dword [esi + 0x4c]
mov eax, 0x68db8bad
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esi + 0x20]
mov dword [esi + 0x4c], eax
mov eax, 0x68db8bad
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
xor edx, edx
cmp word [ecx + 0x32e], 0xffff
sete dl
add ecx, 0x250
push edx
push ecx
push ebx
push edi
lea ecx, [esi + 0x1c]
push ecx
lea ecx, [esi + 0x18]
push ecx
push eax
push eax
mov eax, dword [0x563908]
mov ecx, dword [eax + 0x1790]
call fcn.004ab0e0
test eax, eax
je 0x4606f5
cmp eax, 2
je 0x460bda
mov eax, dword [esi + 0x60]
test eax, eax
jle 0x460c10
mov ecx, dword [esi + 0x80]
add eax, 0xffffffff
test ecx, ecx
mov dword [esi + 0x60], eax
je 0x460691
mov edx, dword [esi + 0x1c]
mov eax, 0x68db8bad
imul edx
push 0
push 0
sar edx, 0xc
push 0
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esi + 0x18]
push 0
push 0
push eax
mov eax, 0x68db8bad
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.004a6e90
mov ecx, dword [esi + 0x38]
movsx edx, word [ecx + 0x328]
imul edx, dword [edi]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [edi], eax
movsx edx, word [ecx + 0x328]
imul edx, dword [ebx]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebx], eax
movsx ecx, word [ecx + 0x328]
imul ecx, dword [esi + 0x4c]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esi + 0x4c], ecx
mov dword [esp + 0x1c], 1
mov edx, dword [0x563918]
cmp dword [edx + 0x245c], 0
je 0x460935
mov eax, dword [esi + 0x8c]
test eax, eax
mov dword [esp + 0x14], eax
je 0x460935
mov eax, dword [esi + 0x38]
movzx eax, word [eax + 0x2e6]
test ax, ax
jle 0x460935
movsx ecx, ax
mov eax, dword [esi + 0x5c]
cdq
idiv ecx
test edx, edx
jne 0x460935
mov eax, dword [esp + 0x14]
cmp word [eax + 0xc2], 1
jne 0x460794
movsx edx, word [eax + 0xb0]
mov eax, dword [esi + 0x54]
mov dword [esp + 0x28], edx
cdq
mov ecx, 0x3a980
idiv ecx
mov eax, 0x1d4c0
mov ecx, edx
cdq
idiv dword [esp + 0x28]
add eax, ecx
cdq
mov ecx, 0x3a980
idiv ecx
mov eax, 0x45e7b273
imul edx, dword [esp + 0x28]
imul edx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x30], eax
jmp 0x4607b5
mov edx, dword [esi + 0x8c]
mov dword [esp + 0x14], edx
call fcn.004c11ab
mov ecx, dword [esp + 0x14]
movsx ecx, word [ecx + 0xb0]
cdq
idiv ecx
mov dword [esp + 0x30], edx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x168]
movsx eax, word [edx + 4]
cdq
xor eax, edx
sub eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x34], eax
movsx eax, word [ecx + 0xaa]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x38]
movzx ecx, word [eax + 0x450]
test cx, cx
je 0x4607f6
movsx ecx, cx
mov dword [esp + 0x28], ecx
test byte [eax + 0x338], 4
mov ecx, dword [eax + 0x44c]
mov dword [esp + 0x14], ecx
je 0x460863
mov eax, dword [esi + 0xa4]
movsx edx, cl
movsx ecx, ch
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
movsx ecx, al
movsx eax, ah
add ecx, edx
mov dword [esp + 0x3c], eax
movsx eax, byte [esp + 0x4a]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x44]
add ecx, edx
movsx edx, byte [esp + 0x16]
add eax, edx
mov dl, byte [esp + 0x48]
mov dword [esp + 0x14], 0
mov byte [esp + 0x14], dl
mov byte [esp + 0x15], cl
mov byte [esp + 0x16], al
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
push 0x44
call fcn.004c1ea3
mov ecx, eax
add esp, 4
mov dword [esp + 0x48], ecx
test ecx, ecx
mov dword [esp + 0x78], 0
je 0x4608fb
mov ebx, dword [ebx]
imul ebx, dword [esp + 0x34]
cmp dword [0x53a7c4], 0
je 0x4608ad
lea edx, [ebx*8]
sub edx, ebx
mov eax, 0x66666667
imul edx
sar edx, 2
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x90]
push 0
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x34]
push eax
push eax
mov eax, dword [esi + 0x48]
push edx
mov edx, dword [esi + 0x20]
push 0
push 0
lea eax, [eax + eax*4]
sub edx, eax
mov eax, dword [esi + 0x1c]
push 0
push edx
mov edx, dword [edi]
imul edx, dword [esp + 0x5c]
sub eax, ebx
push eax
mov eax, dword [esi + 0x18]
sub eax, edx
mov edx, dword [esi + 0x8c]
push eax
push edx
call fcn.004025cc
mov edi, eax
jmp 0x4608fd
xor edi, edi
mov ecx, dword [esp + 0x18]
mov eax, dword [edi]
mov edx, dword [eax + 4]
push ecx
mov ecx, edi
mov dword [esp + 0x7c], 0xffffffff
call edx
mov eax, dword [0x563908]
cmp dword [eax + 0x80b2], 0
push edi
je 0x46092a
mov ecx, dword [eax + 0x578]
jmp 0x460930
mov ecx, dword [eax + 0x57c]
call fcn.004a7300
mov eax, dword [esp + 0x38]
sub dword [esp + 0x18], 1
add eax, 1
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
jl 0x4602e0
cmp dword [esp + 0x1c], 0
je 0x460986
fild dword [esi + 0x44]
fild dword [esi + 0x40]
call fcn.004c444a
fadd qword [0x512608]
fmul qword [0x5125f8]
call fcn.004c2db0
mov ecx, 0x16e3600
sub ecx, eax
mov eax, ecx
cdq
mov ecx, 0x3a980
idiv ecx
mov dword [esi + 0x54], edx
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx + 0x348]
test eax, eax
jl 0x460998
cmp dword [esi + 0x5c], eax
jge 0x4609c2
cmp eax, 0xffffffff
jne 0x460bae
movsx edx, word [ecx + 0x32e]
cmp dword [esi + 0x60], edx
jne 0x4609c2
movsx eax, word [ecx + 0x33e]
cdq
xor eax, edx
sub eax, edx
cmp dword [esi + 0x64], eax
je 0x460bae
mov eax, dword [esi + 0x6c]
test eax, eax
jl 0x460a6b
mov ecx, dword [0x563908]
mov edx, dword [ecx + 0x177c]
mov ebx, dword [edx + eax*4 + 4]
xor edi, edi
or eax, 0xffffffff
test ebx, ebx
je 0x460a41
mov eax, dword [ebx]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x5c]
push edx
mov edx, dword [eax + 0x54]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x54]
sub ecx, dword [esi + 0x18]
mov eax, 0x68db8bad
imul ecx
sar edx, 0xc
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x58]
sub edx, dword [esi + 0x1c]
mov eax, 0x68db8bad
imul edx
sar edx, 0xc
mov edi, edx
shr edi, 0x1f
add edi, edx
mov edx, dword [ebx]
imul edi, edi
mov eax, ecx
imul eax, ecx
add edi, eax
mov eax, dword [edx + 0x10]
mov ecx, ebx
call eax
mov ecx, dword [ebp + 8]
sub dword [esi + 0x70], ecx
test edi, edi
mov ecx, dword [esi + 0x70]
je 0x460c49
cmp edi, dword [esi + 0x74]
jg 0x460c49
test ecx, ecx
jl 0x460c49
mov dword [esi + 0x74], edi
jmp 0x460bae
movzx edx, word [ecx + 0x330]
test dx, dx
jl 0x460bae
movzx eax, word [ecx + 0x2e2]
cmp ax, 3
je 0x460bae
or ebx, 0xffffffff
movsx eax, ax
or edi, ebx
sub eax, 0
je 0x460aa3
sub eax, 1
jne 0x460aa6
mov ebx, dword [esi + 0x10]
jmp 0x460aa6
mov edi, dword [esi + 0x10]
mov eax, dword [ecx + 0x340]
push eax
movsx ecx, dx
push ecx
mov ecx, dword [esi + 0x20]
mov eax, 0x68db8bad
imul ecx
mov ecx, dword [esi + 0x1c]
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
mov eax, 0x68db8bad
imul ecx
sar edx, 0xc
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
mov ecx, dword [esi + 0x18]
mov eax, 0x68db8bad
imul ecx
mov ecx, dword [esi + 0x14]
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x563908]
push eax
push ecx
mov ecx, dword [edx + 0x177c]
push edi
push ebx
call fcn.004014dd
test eax, eax
mov dword [esi + 0x6c], eax
jl 0x460bae
mov ecx, dword [0x563908]
mov edx, dword [ecx + 0xe15a]
mov dword [esi + 0x70], edx
mov ecx, dword [0x563908]
mov edx, dword [ecx + 0x177c]
mov edi, dword [edx + eax*4 + 4]
test edi, edi
je 0x460bae
mov eax, dword [edi]
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x64]
push edx
mov edx, dword [eax + 0x54]
lea ecx, [esp + 0x64]
push ecx
mov ecx, edi
call edx
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esi + 0x18]
mov eax, 0x68db8bad
imul ecx
sar edx, 0xc
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x60]
sub edx, dword [esi + 0x1c]
mov eax, 0x68db8bad
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
imul edx, eax
mov eax, ecx
imul eax, ecx
add edx, eax
mov eax, dword [esi + 0x38]
mov dword [esi + 0x74], edx
cmp word [eax + 0x330], 0xc
jl 0x460c40
cmp dword [eax + 0x350], 0
jne 0x460c40
mov eax, dword [ebp + 8]
sub eax, dword [esp + 0x20]
test eax, eax
mov dword [ebp + 8], eax
jg 0x4602b2
jmp 0x46029b
mov ecx, dword [esi + 0x38]
cmp dword [ecx + 0x344], 0
jge 0x460bda
push 0xffffffffffffffff
mov ecx, esi
call fcn.00401b09
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
fstp st(0)
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 0x38]
cmp word [edx + 0x32e], 0xfffe
je 0x460bda
push 0xffffffffffffffff
mov ecx, esi
call fcn.00401b09
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
push eax
mov ecx, esi
call fcn.00401b09
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4