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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 0xec
and esp, 0xfffffff8
mov ebx, dword [ebp + 8]
mov dword [esp + 0x64], ecx
xor edi, edi
xor edx, edx
jmp 0x48170c
cmp esi, eax
jb 0x4816ee
mov esi, edx
inc esi
mov eax, dword [esp + 0x64]
mov dword [eax + 0x68], esi
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x64]
mov ecx, dword [eax + edx*4]
cmp dword [ecx + 0x18], 0x63757276
jne 0x48170b
cmp dword [ecx + 0x90], 0
jle 0x48170b
inc edi
inc edx
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x68]
mov esi, edx
cmp esi, eax
jb 0x4816e0
mov dword [esp + 0x6c], 2
test edi, edi
je 0x48173e
mov eax, 0x400
cdq
idiv edi
mov dword [esp + 0x6c], eax
cmp eax, 2
jge 0x48173e
mov dword [esp + 0x6c], 2
mov eax, dword [ebx + 4]
test eax, eax
je 0x481753
test eax, eax
je 0x481753
add eax, 0xfffffff8
push eax
call fcn.00494620
pop ecx
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov eax, dword [ebx + 8]
mov dword [ebx + 0xc], eax
mov dword [ebx], 0x40
mov edi, dword [0x4cd818]
mov eax, dword [0x4cd81c]
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], eax
mov edx, edi
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], eax
mov dword [esp + 0x68], 0
jmp 0x481ea1
cmp esi, eax
jb 0x4817b3
mov esi, dword [esp + 0x68]
inc esi
mov eax, dword [esp + 0x64]
mov dword [eax + 0x68], esi
mov eax, dword [esp + 0x64]
mov edi, dword [eax + 0x64]
mov ecx, dword [esp + 0x68]
mov eax, dword [edi + ecx*4]
mov dword [esp + 0x4c], eax
cmp dword [eax + 0x18], 0x63757276
jne 0x481ff0
mov ecx, dword [eax + 0x28]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x4c]
mov esi, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], eax
fld qword [esp + 0x88]
fsub qword [esp + 0xa8]
fstp st(1)
mov edi, dword [esp + 0xb0]
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], eax
fld qword [esp + 0x90]
fsub qword [esp + 0x98]
fstp st(2)
mov byte [esp + 0x50], 0
xor dl, dl
xor cl, cl
fcom qword [0x4cd850]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x481862
fcom qword [0x4cd858]
fnstsw ax
test ah, 0x45
jne 0x481862
mov cl, 1
test cl, cl
je 0x48187a
fld st(1)
fcomp qword [0x4cd850]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x48187a
mov dl, 1
test dl, dl
je 0x481892
fld st(1)
fcomp qword [0x4cd858]
fnstsw ax
test ah, 0x45
jne 0x481892
mov byte [esp + 0x50], 1
cmp byte [esp + 0x50], 0
je 0x481fd4
cmp dword [esp + 0x68], 0
jne 0x481fe7
jmp 0x481fe0
mov eax, esi
add eax, dword [ebx]
mov dword [esp + 0x34], eax
cmp eax, esi
je 0x48195e
push eax
push 0x10
push 0
push 0x47f030
shl eax, 4
add eax, 8
push eax
call fcn.00494600
pop ecx
push eax
call fcn.00494640
add esp, 0x14
mov dword [esp + 0x3c], eax
mov edi, dword [ebx + 4]
test edi, edi
je 0x481950
mov edx, edi
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x34]
jb 0x481906
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], eax
shl dword [esp + 0xc], 4
add dword [esp + 0xc], edi
cmp edi, dword [esp + 0xc]
jae 0x48193f
mov ecx, edx
add edx, 0x10
mov eax, dword [esp + 0x24]
add dword [esp + 0x24], 0x10
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
mov dword [eax], esi
mov dword [eax + 4], edi
mov esi, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
cmp edx, dword [esp + 0xc]
jb 0x481915
mov eax, dword [ebx + 4]
test eax, eax
je 0x481950
add eax, 0xfffffff8
push eax
call fcn.00494620
pop ecx
mov eax, dword [esp + 0x3c]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0xc], eax
mov esi, dword [ebx + 0xc]
mov edi, dword [ebx + 8]
cmp edi, esi
jae 0x4818b0
shl edi, 4
add edi, dword [ebx + 4]
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0xac]
mov dword [edi], edx
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], eax
inc dword [ebx + 8]
mov eax, dword [esp + 0x4c]
cmp dword [eax + 0x90], 1
jge 0x481ac6
mov esi, dword [eax + 0x68]
mov eax, dword [eax + 0x6c]
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x4c]
mov edi, dword [eax + 0x60]
mov eax, dword [eax + 0x64]
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], eax
jmp 0x481a89
mov eax, edx
add eax, dword [ebx]
mov dword [esp + 0x38], eax
cmp eax, edx
je 0x481a89
push eax
push 0x10
push 0
push 0x47f030
shl eax, 4
add eax, 8
push eax
call fcn.00494600
pop ecx
push eax
call fcn.00494640
add esp, 0x14
mov dword [esp + 0x40], eax
mov edi, dword [ebx + 4]
test edi, edi
je 0x481a7b
mov ecx, edi
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x38]
jb 0x481a2e
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
shl dword [esp + 0x10], 4
add dword [esp + 0x10], edi
cmp edi, dword [esp + 0x10]
jae 0x481a6a
lea eax, [eax]
mov edx, ecx
add ecx, 0x10
mov eax, dword [esp + 0x28]
add dword [esp + 0x28], 0x10
mov esi, dword [edx]
mov edi, dword [edx + 4]
mov dword [eax], esi
mov dword [eax + 4], edi
mov esi, dword [edx + 8]
mov edi, dword [edx + 0xc]
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
cmp ecx, dword [esp + 0x10]
jb 0x481a40
mov eax, dword [ebx + 4]
test eax, eax
je 0x481a7b
add eax, 0xfffffff8
push eax
call fcn.00494620
pop ecx
mov eax, dword [esp + 0x40]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0xc], eax
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
cmp ecx, edx
jae 0x4819d8
shl ecx, 4
add ecx, dword [ebx + 4]
mov esi, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov dword [ecx], esi
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
inc dword [ebx + 8]
jmp 0x481e6d
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx + 0x94]
mov dword [esp + 0x58], eax
cmp eax, 2
jl 0x481adf
cmp eax, dword [esp + 0x6c]
jle 0x481ae7
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xa0], eax
fild dword [esp + 0xa0]
fdivr qword [0x4cd800]
fstp qword [esp + 0x70]
mov eax, dword [esp + 0x4c]
mov edi, dword [eax + 0x60]
mov eax, dword [eax + 0x64]
mov dword [esp + 0xb8], edi
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x4c]
mov esi, dword [eax + 0x68]
mov eax, dword [eax + 0x6c]
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x4c]
cmp dword [eax + 0x90], 1
jne 0x481cd2
mov dword [esp + 0x44], 1
cmp dword [esp + 0x58], 1
jl 0x481e6d
mov eax, dword [esp + 0x44]
mov dword [esp + 0xa0], eax
fild dword [esp + 0xa0]
fmul qword [esp + 0x70]
push eax
push eax
fstp qword [esp]
push dword [esp + 0xcc]
push dword [esp + 0xcc]
push dword [esp + 0xcc]
push dword [esp + 0xcc]
mov eax, dword [esp + 0x64]
push dword [eax + 0x7c]
push dword [eax + 0x78]
push dword [eax + 0x74]
push dword [eax + 0x70]
push dword [esp + 0xdc]
push dword [esp + 0xdc]
push dword [esp + 0xdc]
push dword [esp + 0xdc]
lea eax, [esp + 0x100]
push eax
call fcn.00480570
add esp, 0x3c
jmp 0x481c7d
mov eax, edx
add eax, dword [ebx]
mov dword [esp + 4], eax
cmp eax, edx
je 0x481c7d
push eax
push 0x10
push 0
push 0x47f030
shl eax, 4
add eax, 8
push eax
call fcn.00494600
pop ecx
push eax
call fcn.00494640
add esp, 0x14
mov dword [esp + 0x1c], eax
mov esi, dword [ebx + 4]
test esi, esi
je 0x481c6f
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 8]
cmp eax, dword [esp + 4]
jb 0x481c20
mov eax, dword [esp + 4]
shl eax, 4
add eax, esi
cmp esi, eax
jae 0x481c5e
lea eax, [eax]
mov ecx, dword [esp + 0x14]
add dword [esp + 0x14], 0x10
mov edx, dword [esp + 0x2c]
add dword [esp + 0x2c], 0x10
mov edi, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [edx], edi
mov dword [edx + 4], esi
mov edi, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [edx + 8], edi
mov dword [edx + 0xc], esi
cmp dword [esp + 0x14], eax
jb 0x481c30
mov eax, dword [ebx + 4]
test eax, eax
je 0x481c6f
add eax, 0xfffffff8
push eax
call fcn.00494620
pop ecx
mov eax, dword [esp + 0x1c]
mov dword [ebx + 4], eax
mov eax, dword [esp + 4]
mov dword [ebx + 0xc], eax
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
cmp ecx, edx
jae 0x481bd0
shl ecx, 4
add ecx, dword [ebx + 4]
mov edi, dword [esp + 0xc8]
mov eax, dword [esp + 0xcc]
mov dword [ecx], edi
mov dword [ecx + 4], eax
mov esi, dword [esp + 0xd0]
mov eax, dword [esp + 0xd4]
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], eax
inc dword [ebx + 8]
inc dword [esp + 0x44]
mov eax, dword [esp + 0x44]
cmp eax, dword [esp + 0x58]
jle 0x481b57
jmp 0x481e6d
mov dword [esp + 0x48], 1
cmp dword [esp + 0x58], 1
jl 0x481e6d
mov eax, dword [esp + 0x48]
mov dword [esp + 0xa0], eax
fild dword [esp + 0xa0]
fmul qword [esp + 0x70]
push eax
push eax
fstp qword [esp]
push dword [esp + 0xcc]
push dword [esp + 0xcc]
push dword [esp + 0xcc]
push dword [esp + 0xcc]
mov eax, dword [esp + 0x64]
push dword [eax + 0x8c]
push dword [eax + 0x88]
push dword [eax + 0x84]
push dword [eax + 0x80]
push dword [eax + 0x7c]
push dword [eax + 0x78]
push dword [eax + 0x74]
push dword [eax + 0x70]
push dword [esp + 0xec]
push dword [esp + 0xec]
push dword [esp + 0xec]
push dword [esp + 0xec]
lea eax, [esp + 0x120]
push eax
call fcn.004805e0
add esp, 0x4c
jmp 0x481e1d
mov eax, edi
add eax, dword [ebx]
mov dword [esp + 8], eax
cmp eax, edi
je 0x481e1d
push eax
push 0x10
push 0
push 0x47f030
shl eax, 4
add eax, 8
push eax
call fcn.00494600
pop ecx
push eax
call fcn.00494640
add esp, 0x14
mov dword [esp + 0x20], eax
mov esi, dword [ebx + 4]
test esi, esi
je 0x481e0f
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 8]
cmp eax, dword [esp + 8]
jb 0x481dc5
mov eax, dword [esp + 8]
shl eax, 4
add eax, esi
cmp esi, eax
jae 0x481dfe
mov eax, eax
mov edx, dword [esp + 0x18]
add dword [esp + 0x18], 0x10
mov ecx, dword [esp + 0x30]
add dword [esp + 0x30], 0x10
mov edi, dword [edx]
mov esi, dword [edx + 4]
mov dword [ecx], edi
mov dword [ecx + 4], esi
mov edi, dword [edx + 8]
mov esi, dword [edx + 0xc]
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], esi
cmp dword [esp + 0x18], eax
jb 0x481dd0
mov eax, dword [ebx + 4]
test eax, eax
je 0x481e0f
add eax, 0xfffffff8
push eax
call fcn.00494620
pop ecx
mov eax, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov eax, dword [esp + 8]
mov dword [ebx + 0xc], eax
mov edi, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
cmp esi, edi
jae 0x481d75
shl esi, 4
add esi, dword [ebx + 4]
mov ecx, dword [esp + 0xd8]
mov eax, dword [esp + 0xdc]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0xe4]
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
inc dword [ebx + 8]
inc dword [esp + 0x48]
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x58]
jle 0x481ce5
mov eax, dword [esp + 0x4c]
mov edi, dword [eax + 0x60]
mov eax, dword [eax + 0x64]
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x4c]
mov esi, dword [eax + 0x68]
mov eax, dword [eax + 0x6c]
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], eax
inc dword [esp + 0x68]
fldz
fldz
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x68]
mov esi, dword [esp + 0x68]
cmp esi, eax
jb 0x4817a3
mov eax, dword [ebx + 8]
cmp eax, 1
jbe 0x482000
test eax, eax
ja 0x481ecf
mov dword [ebx + 8], 1
mov eax, dword [ebx + 4]
mov dword [esp + 0x60], eax
fld qword [eax]
fsub qword [esp + 0x88]
fstp st(1)
fld qword [eax + 8]
fsub qword [esp + 0x90]
fstp st(2)
mov byte [esp + 0x5c], 0
xor cl, cl
xor dl, dl
fcom qword [0x4cd850]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x481f15
fcom qword [0x4cd858]
fnstsw ax
test ah, 0x45
jne 0x481f15
mov dl, 1
test dl, dl
je 0x481f2d
fld st(1)
fcomp qword [0x4cd850]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x481f2d
mov cl, 1
test cl, cl
je 0x481f45
fld st(1)
fcomp qword [0x4cd858]
fnstsw ax
test ah, 0x45
jne 0x481f45
mov byte [esp + 0x5c], 1
cmp byte [esp + 0x5c], 0
je 0x482004
mov eax, dword [ebx + 8]
mov dword [esp + 0x54], eax
dec eax
mov ecx, eax
cmp ecx, eax
jne 0x481f66
dec dword [ebx + 8]
jmp 0x481ff7
mov edi, ecx
shl edi, 4
add edi, dword [esp + 0x60]
inc ecx
shl ecx, 4
add ecx, dword [esp + 0x60]
mov esi, ecx
shl dword [esp + 0x54], 4
mov eax, dword [esp + 0x54]
add eax, dword [esp + 0x60]
mov dword [esp + 0x54], eax
cmp ecx, eax
fcompp
jae 0x481fa6
mov eax, esi
add esi, 0x10
push eax
mov ecx, edi
add edi, 0x10
call fcn.004820e0
cmp esi, dword [esp + 0x54]
jb 0x481f90
dec dword [ebx + 8]
mov edi, dword [ebx]
lea edx, [edi + edi]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
sub ecx, eax
cmp ecx, edx
jbe 0x481fca
xor edx, edx
div edi
inc eax
imul eax, edi
push eax
mov ecx, ebx
call fcn.00482010
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4
fcompp
jmp 0x48195e
fcompp
jmp 0x48195e
fcompp
jmp 0x48199c
fcompp
jmp 0x481e9d
fcompp
jmp 0x481fa9
fcompp
jmp 0x481fca
fcompp
jmp 0x481fca