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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459080
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x46a040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x46e460]
mov edx, dword [edi + 0x19cc]
shr edx, 0xa
and dl, 1
mov dword [ebp - 0x20], edx
je 0x416773
xor ebx, ebx
cmp dword [edi + 0x1dd0], ebx
jle 0x416773
nop dword [eax]
mov eax, dword [edi + 0x1dd8]
mov esi, dword [eax + ebx*4]
mov eax, dword [edi + 0x1544]
mov cl, byte [esi + 0x6a]
test eax, eax
je 0x416758
test cl, cl
je 0x416758
push esi
call eax
mov ecx, dword [esi + 4]
add esp, 4
test al, al
je 0x41674f
or ecx, 0x400
jmp 0x416755
and ecx, 0xfffffbff
mov dword [esi + 4], ecx
inc ebx
cmp ebx, dword [edi + 0x1dd0]
jl 0x416720
mov eax, dword [edi + 0x1dd8]
lea ebx, [edi + 0x1dd8]
mov eax, dword [eax]
mov ecx, eax
jmp 0x416790
mov eax, dword [edi + 0x1dd8]
lea ebx, [edi + 0x1dd8]
mov dword [ebp - 0x1c], ebx
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
test dl, dl
je 0x4167ee
push ecx
mov esi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x1530]
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 0x1c], ebx
call eax
add esp, 8
mov dword [ebp - 0x18], esi
test dword [esi + 4], 0x400
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], ecx
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
je 0x416816
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esi
jmp 0x416813
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], 0
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
push 0x1004
lea eax, [ebp - 0x28]
mov edx, 0x11111111
push eax
lea eax, [ebp - 0x30]
xor ecx, ecx
push eax
call fcn.00416de0
xor ebx, ebx
mov dword [edi + 0x1ddc], 0
add esp, 0xc
mov dword [edi + 0x1de0], 0
mov dword [edi + 0x1de4], 0
cmp dword [edi + 0x1dd0], ebx
jle 0x416c44
nop
mov edx, dword [ebp - 0x1c]
lea ecx, [ebx*4]
mov eax, dword [edx]
mov esi, dword [ecx + eax]
mov dword [esi + 0x48], ebx
test ebx, ebx
jle 0x416a13
mov eax, dword [edi + 0x1be0]
sub eax, 2
cmp dword [esi + 0x4c], eax
jge 0x416a13
xor ecx, ecx
cmp dword [edi + 0x1c00], ecx
jle 0x4168ce
nop word [eax + eax]
mov eax, dword [edi + 0x1c08]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x30], esi
jne 0x4168c5
mov dword [eax + 0x30], 0
mov eax, dword [edi + 0x1c08]
mov eax, dword [eax + ecx*4]
mov byte [eax + 0xc2], 0
inc ecx
cmp ecx, dword [edi + 0x1c00]
jl 0x4168a0
cmp esi, dword [edi + 0x1de8]
jne 0x4168e0
mov dword [edi + 0x1de8], 0
mov edx, dword [edx]
lea eax, [ebx*4]
add edx, eax
mov eax, dword [edi + 0x1dd8]
sub edx, eax
sar edx, 2
lea ecx, [eax + edx*4]
mov eax, dword [edi + 0x1dd0]
sub eax, edx
lea eax, [eax*4 - 4]
push eax
lea eax, [ecx + 4]
push eax
push ecx
call fcn.004405a0
dec dword [edi + 0x1dd0]
add esp, 0xc
cmp byte [esi + 0x6a], 0
mov eax, dword [0x46e460]
mov dword [ebp - 0x24], eax
je 0x416959
mov eax, dword [eax + 0x1570]
test eax, eax
je 0x41693a
push esi
call eax
add esp, 4
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x1524]
test eax, eax
je 0x41694d
push esi
call eax
add esp, 4
cmp dword [esi], 0x11111111
je 0x416959
mov byte [esi + 0x6a], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov word [esi + 0x44], 0
mov byte [esi + 0x46], 0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x78]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4169aa
mov ecx, eax
call fcn.00401280
mov eax, dword [0x46e460]
test eax, eax
je 0x41699f
dec dword [eax + 0x374]
push dword [ebp - 0x24]
call fcn.00444271
add esp, 4
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4169d5
mov ecx, eax
call fcn.00401280
mov eax, dword [0x46e460]
test eax, eax
je 0x4169ca
dec dword [eax + 0x374]
push dword [ebp - 0x24]
call fcn.00444271
add esp, 4
push 0x41f800
push 2
push 0xc
lea eax, [esi + 0xb0]
mov byte [ebp - 4], 1
push eax
call fcn.0043d6e0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x46e460]
test eax, eax
je 0x416a04
dec dword [eax + 0x374]
push esi
call fcn.00444271
add esp, 4
dec ebx
jmp 0x416c37
cmp byte [ebp - 0x20], 0
mov al, byte [esi + 0x6a]
mov byte [ebp - 0xd], al
je 0x416a9e
test dword [esi + 4], 0x400
jne 0x416a9e
test al, al
je 0x416a9e
cmp byte [esi + 0x44], 0
je 0x416a65
lea eax, [ebp - 0x30]
push esi
push eax
mov eax, dword [edi + 0x1530]
call eax
add esp, 8
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
movss dword [esi + 0xc8], xmm0
movss dword [esi + 0xcc], xmm1
movss dword [esi + 8], xmm0
movss dword [esi + 0xc], xmm1
cmp byte [esi + 0x45], 0
je 0x416a9e
lea eax, [ebp - 0x38]
push esi
push eax
mov eax, dword [edi + 0x1538]
call eax
add esp, 8
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
movss dword [esi + 0xd0], xmm0
movss dword [esi + 0xd4], xmm1
movss dword [esi + 0x10], xmm0
movss dword [esi + 0x14], xmm1
mov ecx, esi
call fcn.00417960
test dword [esi + 4], 0x1000
lea edx, [esi + 0x58]
mov eax, dword [esi + 0xf0]
xorps xmm3, xmm3
mov ecx, dword [esi + 0xf4]
movss xmm5, dword [esi + 0xc]
movss xmm4, dword [esi + 8]
movaps xmm0, xmm5
mov dword [esi + 0xe4], ecx
movaps xmm1, xmm4
mov ecx, dword [esi + 0xfc]
mov dword [esi + 0xe0], eax
mov eax, dword [esi + 0xf8]
mov dword [esi + 0xec], ecx
lea ecx, [esi + 8]
mov dword [esi + 0xe8], eax
mov dword [esi + 0xf8], 0
mov dword [esi + 0xfc], 0
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 0
addss xmm0, dword [esi + 0xe4]
movss xmm2, dword [esi + 0xe0]
addss xmm1, xmm2
movss dword [esi + 0x1c], xmm0
movss xmm0, dword [esi + 0x10]
subss xmm0, xmm2
movss dword [esi + 0x18], xmm1
xorps xmm2, xmm2
xorps xmm1, xmm1
addss xmm0, dword [esi + 0xe8]
maxss xmm2, xmm0
movss xmm0, dword [esi + 0x14]
subss xmm0, dword [esi + 0xe4]
addss xmm0, dword [esi + 0xec]
movss dword [esi + 0x20], xmm2
mov dword [esi + 0x60], 0x3f800000
maxss xmm1, xmm0
movss dword [esi + 0x24], xmm1
subss xmm4, dword [edx]
subss xmm5, dword [edx + 4]
je 0x416bab
ucomiss xmm4, xmm3
lahf
test ah, 0x44
jp 0x416b9d
ucomiss xmm5, xmm3
lahf
test ah, 0x44
jnp 0x416bab
push ecx
mov ecx, esi
call fcn.00416150
add esp, 4
xorps xmm3, xmm3
mov eax, dword [edi + 0x155c]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x416bcf
cmp byte [ebp - 0xd], 0
je 0x416bcf
push esi
call dword [ebp - 0x24]
fstp dword [ebp - 0x24]
movss xmm4, dword [ebp - 0x24]
add esp, 4
jmp 0x416c01
movzx eax, word [esi + 0x68]
cmp ax, 0xffff
je 0x416beb
cwde
lea ecx, [eax + eax*8]
mov eax, dword [edi + 0x1588]
movss xmm4, dword [eax + ecx*4 + 0x20]
jmp 0x416c01
movss xmm4, dword [esi + 0x28]
ucomiss xmm4, xmm3
lahf
test ah, 0x44
jp 0x416c01
movss xmm4, dword [0x46483c]
movss xmm0, dword [esi + 0x28]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x416c32
ucomiss xmm4, xmm0
lahf
test ah, 0x44
jnp 0x416c32
test dword [edi + 8], 0x4000
je 0x416c32
movaps xmm1, xmm4
mov ecx, esi
divss xmm1, xmm0
call fcn.00416440
movss dword [esi + 0x28], xmm4
inc ebx
cmp ebx, dword [edi + 0x1dd0]
jl 0x416860
cmp dword [edi + 0x1580], 0
mov edx, dword [ebp - 0x18]
jne 0x416ca4
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edi + 0x1df0], eax
mov dword [edi + 0x1df4], ecx
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
mov dword [edi + 0x1df8], eax
mov dword [edi + 0x1dfc], ecx
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x1c]
mov dword [edi + 0x1e00], eax
mov dword [edi + 0x1e04], ecx
mov eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x24]
mov dword [edi + 0x1e08], eax
mov dword [edi + 0x1e0c], ecx
mov eax, dword [edx + 0x28]
mov dword [edi + 0x1e10], eax
cmp byte [ebp - 0x20], 0
jne 0x416cc2
mov dword [edi + 0x1de4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dword [edi + 0xc], 0x800
mov esi, dword [0x46e460]
je 0x416d16
xor ecx, ecx
cmp dword [edi + 0xfc], ecx
je 0x416d4b
mov ebx, dword [esi + 0x1dd0]
test ebx, ebx
jle 0x416d0a
mov edx, dword [esi + 0x1dd8]
nop dword [eax + eax]
mov eax, dword [edx]
mov ebx, dword [edi + 0xfc]
cmp dword [eax], ebx
mov ebx, dword [esi + 0x1dd0]
je 0x416d40
inc ecx
add edx, 4
cmp ecx, ebx
jl 0x416cf0
xor ecx, ecx
test ecx, ecx
je 0x416d2c
test byte [ecx + 4], 0x80
je 0x416d2c
push dword [edi + 0xe8]
push dword [edi + 0xe4]
call fcn.00416640
mov ecx, eax
add esp, 8
lea eax, [edi + 0x1de8]
mov ebx, eax
test ecx, ecx
je 0x416d53
mov dword [eax], ecx
mov edx, ecx
mov eax, ecx
jmp 0x416d67
mov eax, dword [esi + 0x1dd8]
mov ecx, dword [eax + ecx*4]
jmp 0x416d0c
lea eax, [edi + 0x1de8]
mov ebx, eax
mov eax, dword [eax]
mov edx, eax
test eax, eax
jne 0x416d67
mov eax, dword [edi + 0x1dd8]
mov eax, dword [eax]
mov edx, eax
mov dword [ebx], eax
mov ebx, dword [edi + 0x1c58]
test ebx, ebx
je 0x416d74
mov eax, dword [ebx + 0x30]
mov dword [edi + 0x1de4], eax
cmp byte [edi + 0x1f5c], 0
je 0x416d8b
test ecx, ecx
jne 0x416daa
mov ecx, edx
jmp 0x416da6
cmp dword [edi + 0x1c84], 0
je 0x416da6
xor eax, eax
cmp byte [eax + esi + 0xec], 0
jne 0x416dbe
inc eax
cmp eax, 5
jl 0x416d96
test ecx, ecx
je 0x416dbe
cmp ecx, dword [edi + 0x1de4]
je 0x416dbe
test byte [ecx + 4], 0x80
jne 0x416dbe
mov dword [edi + 0x1de4], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret