Function at 0x100153b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039c29
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x1004d180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], ecx
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp + 0xc]
lea eax, [ecx + edx + 0xa]
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x228]
mov edx, dword [ecx + 0x18]
mov eax, dword [ebp - 0x228]
imul ecx, dword [eax + 0x10], 0x14
lea edx, [edx + ecx + 0xf]
mov dword [ebp - 0x21c], edx
mov byte [ebp - 0x221], 0
mov dword [ebp - 0x234], 0
jmp 0x10015436
mov eax, dword [ebp - 0x234]
add eax, 1
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0x32
jge 0x10015463
mov ecx, dword [ebp - 0x228]
add ecx, dword [ebp - 0x234]
mov dl, byte [ecx + 0x28]
mov byte [ebp - 0x221], dl
movzx eax, byte [ebp - 0x221]
test eax, eax
je 0x10015461
jmp 0x10015463
jmp 0x10015427
cmp dword [ebp + 8], 0
jne 0x100155db
mov ecx, dword [ebp + 0x10]
push ecx
push 0xff
push 0xff
push 0xff
push 0xff
mov edx, dword [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x220]
push eax
push 0
mov ecx, dword [0x10051038]
push ecx
push 0x10051020
call fcn.10005890
add esp, 0x28
mov edx, dword [ebp - 0x220]
add edx, 0x73
mov dword [ebp - 0x220], edx
push 0x16
push 0x16
mov eax, dword [ebp - 0x21c]
sub eax, 2
push eax
mov ecx, dword [ebp - 0x220]
add ecx, 0x12
push ecx
mov ecx, 0x10050ec4
call fcn.10019b40
movzx edx, al
test edx, edx
je 0x10015525
movzx eax, byte [ebp - 0x221]
test eax, eax
jne 0x10015525
mov ecx, dword [ebp + 0x18]
movss xmm0, dword [ecx]
ucomiss xmm0, dword [0x1003b3b0]
lahf
test ah, 0x44
jp 0x1001550c
mov dword [ebp - 0x23c], 1
jmp 0x10015516
mov dword [ebp - 0x23c], 0
cvtsi2ss xmm0, dword [ebp - 0x23c]
mov edx, dword [ebp + 0x18]
movss dword [edx], xmm0
push 0xff
push 0x1e
push 0x1e
push 0x1e
push 0x11
push 0x11
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x220]
add ecx, 0x12
push ecx
mov ecx, 0x10051020
call fcn.100059e0
mov edx, dword [ebp + 0x18]
movss xmm0, dword [edx]
ucomiss xmm0, dword [0x1003b3b0]
lahf
test ah, 0x44
jnp 0x10015593
push 0xff
push 0xf2
push 0x66
push 0x3d
push 0xd
push 0xd
mov eax, dword [ebp - 0x21c]
add eax, 2
push eax
mov ecx, dword [ebp - 0x220]
add ecx, 0x14
push ecx
mov ecx, 0x10051020
call fcn.100059e0
push 0x11
push 0x11
mov edx, dword [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x220]
add eax, 0x12
push eax
mov ecx, 0x10050ec4
call fcn.10019c30
movzx ecx, al
test ecx, ecx
je 0x100155d6
mov ecx, 0x10050950
call fcn.10018eb0
movzx edx, al
test edx, edx
jne 0x100155d6
push 2
mov ecx, 0x10050950
call fcn.10018d70
jmp 0x10016461
cmp dword [ebp + 8], 1
jne 0x100156d1
mov eax, dword [ebp - 0x21c]
add eax, 7
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0xff
push 0xff
push 0xff
push 0xff
mov edx, dword [ebp - 0x21c]
add edx, 5
push edx
mov eax, dword [ebp - 0x220]
push eax
push 0
mov ecx, dword [0x10051038]
push ecx
push 0x10051020
call fcn.10005890
add esp, 0x28
mov edx, dword [ebp - 0x220]
add edx, 0x55
mov dword [ebp - 0x264], edx
mov eax, dword [ebp - 0x21c]
add eax, 5
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x228]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x258], edx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x228]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x250], edx
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x25c], ecx
sub esp, 0x18
mov edx, esp
mov eax, dword [ebp - 0x264]
mov dword [edx], eax
mov ecx, dword [ebp - 0x260]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x25c]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x258]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 0x254]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x250]
mov dword [edx + 0x14], ecx
mov ecx, dword [ebp - 0x228]
call fcn.10018d50
jmp 0x10016461
cmp dword [ebp + 8], 2
jne 0x10015d37
mov edx, dword [ebp - 0x21c]
add edx, 3
mov dword [ebp - 0x21c], edx
movss xmm0, dword [ebp + 0x20]
addss xmm0, dword [0x1003c1a8]
cvttss2si eax, xmm0
mov dword [ebp - 0x24c], eax
cvtsi2ss xmm0, dword [ebp - 0x24c]
movss xmm1, dword [ebp + 0x20]
divss xmm1, xmm0
movss dword [ebp - 0x238], xmm1
mov byte [ebp - 0x22a], 0
mov ecx, dword [ebp - 0x21c]
add ecx, 8
mov dword [ebp - 0x21c], ecx
mov edx, dword [ebp - 0x228]
movzx eax, byte [edx + 0x6c]
test eax, eax
je 0x100157f5
mov ecx, 4
imul edx, ecx, 3
mov eax, dword [ebp - 0x228]
cvttss2si ecx, dword [eax + edx]
push ecx
mov edx, 4
shl edx, 1
mov eax, dword [ebp - 0x228]
cvttss2si ecx, dword [eax + edx]
push ecx
mov edx, 4
shl edx, 0
mov eax, dword [ebp - 0x228]
cvttss2si ecx, dword [eax + edx]
push ecx
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 0x228]
cvttss2si edx, dword [ecx + eax]
push edx
push 5
mov eax, dword [ebp - 0x228]
movss xmm0, dword [eax + 0x70]
addss xmm0, dword [0x1003b428]
cvttss2si ecx, xmm0
push ecx
mov edx, dword [ebp - 0x21c]
add edx, 4
push edx
mov eax, dword [ebp - 0x220]
push eax
mov ecx, 0x10051020
call fcn.100059e0
push 0xff
push 0x1b
push 0x1b
push 0x1b
push 0x12
push 0x7c
mov ecx, dword [ebp - 0x21c]
add ecx, 9
push ecx
mov edx, dword [ebp - 0x220]
sub edx, 7
push edx
mov ecx, 0x10051020
call fcn.100059e0
jmp 0x10015822
push 0xff
push 0x1b
push 0x1b
push 0x1b
push 0x12
push 0x7c
mov eax, dword [ebp - 0x21c]
add eax, 9
push eax
mov ecx, dword [ebp - 0x220]
sub ecx, 7
push ecx
mov ecx, 0x10051020
call fcn.100059e0
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x214]
push eax
mov ecx, 0x10050ec4
call fcn.10018e40
mov ecx, dword [ebp - 0x220]
sub ecx, 0xe
cmp dword [ebp - 0x214], ecx
jl 0x10015905
cvtsi2ss xmm0, dword [ebp - 0x214]
cvtsi2ss xmm1, dword [ebp - 0x220]
mov edx, dword [ebp - 0x228]
addss xmm1, dword [edx + 0x70]
addss xmm1, dword [0x1003bfe8]
comiss xmm1, xmm0
jb 0x10015905
mov eax, dword [ebp - 0x218]
cmp eax, dword [ebp - 0x21c]
jl 0x10015905
mov ecx, dword [ebp - 0x21c]
add ecx, 0x18
cmp dword [ebp - 0x218], ecx
jg 0x10015905
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edx, ax
test edx, edx
je 0x10015905
cmp dword [0x1004d0ac], 0xffffffff
jne 0x10015905
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x1005094c], eax
jae 0x10015905
mov eax, dword [0x10050948]
movzx ecx, byte [eax + 0x10050914]
test ecx, ecx
jne 0x10015905
mov edx, dword [0x10050948]
mov dword [0x1004d0ac], edx
mov eax, dword [0x10050948]
mov byte [eax + 0x10050914], 1
mov ecx, 0x10050950
call fcn.10018eb0
movzx ecx, al
test ecx, ecx
jne 0x10015905
push 2
mov ecx, 0x10050950
call fcn.10018d70
mov edx, dword [ebp - 0x220]
sub edx, 0x66
cmp dword [ebp - 0x214], edx
jl 0x100159e5
cvtsi2ss xmm0, dword [ebp - 0x214]
cvtsi2ss xmm1, dword [ebp - 0x220]
mov eax, dword [ebp - 0x228]
addss xmm1, dword [eax + 0x70]
addss xmm1, dword [0x1003c1b4]
comiss xmm1, xmm0
jb 0x100159e5
mov ecx, dword [ebp - 0x21c]
sub ecx, 0x41a
cmp dword [ebp - 0x218], ecx
jl 0x100159e5
mov edx, dword [ebp - 0x21c]
add edx, 0x41a
cmp dword [ebp - 0x218], edx
jg 0x100159e5
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x100159e5
movzx ecx, byte [ebp - 0x221]
test ecx, ecx
jne 0x100159e5
mov edx, dword [0x10050948]
movzx eax, byte [edx + 0x10050914]
test eax, eax
je 0x100159e3
mov ecx, dword [ebp - 0x214]
sub ecx, dword [ebp - 0x220]
cvtsi2ss xmm0, ecx
mulss xmm0, dword [ebp - 0x238]
addss xmm0, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
movss dword [edx], xmm0
mov byte [ebp - 0x22a], 1
mov ecx, 0x10050950
call fcn.10018eb0
movzx eax, al
test eax, eax
jne 0x100159e3
push 2
mov ecx, 0x10050950
call fcn.10018d70
jmp 0x10015a28
mov ecx, dword [0x10050948]
movzx edx, byte [ecx + 0x10050914]
test edx, edx
je 0x10015a28
mov dword [0x1004d0ac], 0xffffffff
mov eax, dword [0x10050948]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0x32
jae 0x10015a16
jmp 0x10015a1b
call fcn.1001db67
mov ecx, dword [ebp - 0x240]
mov byte [ecx + 0x10050914], 0
mov edx, dword [ebp + 0x18]
movss xmm0, dword [edx]
comiss xmm0, dword [ebp + 0x20]
jbe 0x10015a41
mov eax, dword [ebp + 0x18]
movss xmm0, dword [ebp + 0x20]
movss dword [eax], xmm0
mov ecx, dword [ebp + 0x18]
movss xmm0, dword [ebp + 0x1c]
comiss xmm0, dword [ecx]
jbe 0x10015a5a
mov edx, dword [ebp + 0x18]
movss xmm0, dword [ebp + 0x1c]
movss dword [edx], xmm0
mov dword [ebp - 0x230], 0
jmp 0x10015a75
mov eax, dword [ebp - 0x230]
add eax, 1
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x230]
cmp ecx, dword [0x1004d118]
jg 0x10015b6a
push 0xff
push 0xc7
push 0x99
push 0x26
push 0xe
mov edx, dword [0x1004d118]
sub edx, 4
push edx
mov eax, dword [0x1004d118]
mov ecx, dword [ebp - 0x21c]
lea edx, [ecx + eax + 5]
push edx
cvtsi2ss xmm0, dword [ebp - 0x220]
mov eax, dword [ebp + 0x18]
movss xmm1, dword [eax]
divss xmm1, dword [ebp - 0x238]
addss xmm0, xmm1
cvtsi2ss xmm1, dword [0x1004d118]
subss xmm0, xmm1
cvtsi2ss xmm1, dword [ebp - 0x230]
addss xmm0, xmm1
cvttss2si ecx, xmm0
push ecx
mov ecx, 0x10051020
call fcn.100059e0
push 0xff
push 0xc7
push 0x99
push 0x26
push 0xe
mov edx, dword [0x1004d118]
sub edx, 4
push edx
mov eax, dword [0x1004d118]
mov ecx, dword [ebp - 0x21c]
lea edx, [ecx + eax + 5]
push edx
cvtsi2ss xmm0, dword [ebp - 0x220]
mov eax, dword [ebp + 0x18]
movss xmm1, dword [eax]
divss xmm1, dword [ebp - 0x238]
addss xmm0, xmm1
cvtsi2ss xmm1, dword [0x1004d118]
subss xmm0, xmm1
cvtsi2ss xmm1, dword [ebp - 0x230]
addss xmm0, xmm1
cvttss2si ecx, xmm0
push ecx
mov ecx, 0x10051020
call fcn.100059e0
jmp 0x10015a66
mov edx, dword [ebp - 0x228]
cmp dword [edx + 0x68], 0xffffffff
je 0x10015bd8
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 0x228]
mov eax, dword [edx + 0x68]
mov edx, dword [ebp - 0x228]
mov ecx, dword [edx + ecx]
mov dword [eax*4 + 0x1004f1c8], ecx
mov edx, 4
shl edx, 0
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax + 0x68]
mov eax, dword [ebp - 0x228]
mov edx, dword [eax + edx]
mov dword [ecx*4 + 0x1004f1cc], edx
mov eax, 4
shl eax, 1
mov ecx, dword [ebp - 0x228]
mov edx, dword [ecx + 0x68]
mov ecx, dword [ebp - 0x228]
mov eax, dword [ecx + eax]
mov dword [edx*4 + 0x1004f1d0], eax
mov ecx, dword [ebp - 0x228]
movzx edx, byte [ecx + 0x6d]
test edx, edx
je 0x10015cf3
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.10028b90
add esp, 8
mov edx, dword [ebp + 0x18]
cvtss2sd xmm0, dword [edx]
sub esp, 8
movsd qword [esp], xmm0
push 0x1003c164
lea eax, [ebp - 0x210]
push eax
call fcn.10012080
add esp, 0x10
mov ecx, dword [ebp + 0x10]
push ecx
push 0x1003c16c
lea edx, [ebp - 0x110]
push edx
call fcn.10012080
add esp, 0xc
push 0xff
push 0x21
push 0x21
push 0x21
push 0x12
push 0x22
mov eax, dword [ebp - 0x21c]
add eax, 9
push eax
mov ecx, dword [ebp - 0x220]
add ecx, 0x7c
push ecx
mov ecx, 0x10051020
call fcn.100059e0
lea edx, [ebp - 0x210]
push edx
push 0xff
push 0xff
push 0xff
push 0xff
mov eax, dword [ebp - 0x21c]
add eax, 0xa
push eax
mov ecx, dword [ebp - 0x220]
add ecx, 0x81
push ecx
push 0
mov edx, dword [0x1005102c]
push edx
push 0x10051020
call fcn.10005890
add esp, 0x28
lea eax, [ebp - 0x110]
push eax
push 0xff
push 0xff
push 0xff
push 0xff
mov ecx, dword [ebp - 0x21c]
sub ecx, 8
push ecx
mov edx, dword [ebp - 0x220]
sub edx, 4
push edx
push 0
mov eax, dword [0x10051038]
push eax
push 0x10051020
call fcn.10005890
add esp, 0x28
jmp 0x10015d32
mov ecx, dword [ebp + 0x10]
push ecx
push 0xff
push 0xff
push 0xff
push 0xff
mov edx, dword [ebp - 0x21c]
sub edx, 1
push edx
mov eax, dword [ebp - 0x220]
push eax
push 0
mov ecx, dword [0x10051038]
push ecx
push 0x10051020
call fcn.10005890
add esp, 0x28
jmp 0x10016461
cmp dword [ebp + 8], 3
jne 0x10016013
push 0x14
push 0x32
mov edx, dword [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x220]
push eax
mov ecx, 0x10050ec4
call fcn.10019af0
mov byte [ebp - 0x229], al
movss xmm0, dword [ebp + 0x28]
ucomiss xmm0, dword [0x1003b450]
lahf
test ah, 0x44
jp 0x10015e55
mov ecx, dword [ebp + 0x18]
movss xmm0, dword [ecx]
ucomiss xmm0, dword [0x1003b3b0]
lahf
test ah, 0x44
jnp 0x10015dc9
push 0
push 0
push 0x8c
push 0xff
push 0xe9
push 0xe9
push 0xe9
push 0x14
push 0x32
mov edx, dword [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x220]
push eax
call fcn.10018310
add esp, 0x2c
jmp 0x10015e50
movzx ecx, byte [ebp - 0x229]
test ecx, ecx
je 0x10015e13
push 0xe9
push 0xe9
push 0xe9
push 0xff
push 0x9a
push 0xab
push 0xb9
push 0x14
push 0x32
mov edx, dword [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x220]
push eax
call fcn.10018310
add esp, 0x2c
jmp 0x10015e50
push 0xe9
push 0xe9
push 0xe9
push 0xff
push 0xe9
push 0xe9
push 0xe9
push 0x14
push 0x32
mov ecx, dword [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x220]
push edx
call fcn.10018310
add esp, 0x2c
jmp 0x10015f29
mov eax, dword [ebp + 0x18]
movss xmm0, dword [eax]
ucomiss xmm0, dword [ebp + 0x28]
lahf
test ah, 0x44
jp 0x10015ea2
push 0
push 0
push 0x8c
push 0xff
push 0xe9
push 0xe9
push 0xe9
push 0x14
push 0x32
mov ecx, dword [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x220]
push edx
call fcn.10018310
add esp, 0x2c
jmp 0x10015f29
movzx eax, byte [ebp - 0x229]
test eax, eax
je 0x10015eec
push 0xe9
push 0xe9
push 0xe9
push 0xff
push 0x9a
push 0xab
push 0xb9
push 0x14
push 0x32
mov ecx, dword [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x220]
push edx
call fcn.10018310
add esp, 0x2c
jmp 0x10015f29
push 0xe9
push 0xe9
push 0xe9
push 0xff
push 0xe9
push 0xe9
push 0xe9
push 0x14
push 0x32
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x220]
push ecx
call fcn.10018310
add esp, 0x2c
mov edx, dword [ebp + 0x10]
push edx
push 0xff
push 0xff
push 0xff
push 0xff
mov eax, dword [ebp - 0x21c]
add eax, 2
push eax
cvtsi2sd xmm0, dword [ebp - 0x220]
addsd xmm0, qword [0x1003c198]
cvttsd2si ecx, xmm0
push ecx
push 1
mov edx, dword [0x1005102c]
push edx
push 0x10051020
call fcn.10005890
add esp, 0x28
push 0x14
push 0x32
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x220]
push ecx
mov ecx, 0x10050ec4
call fcn.10019c30
movzx edx, al
test edx, edx
je 0x1001600e
mov ecx, 0x10050ec4
call fcn.10018e70
movzx eax, al
test eax, eax
je 0x1001600e
movzx ecx, byte [ebp - 0x221]
test ecx, ecx
jne 0x1001600e
movss xmm0, dword [ebp + 0x28]
ucomiss xmm0, dword [0x1003b450]
lahf
test ah, 0x44
jp 0x10016002
mov edx, dword [ebp + 0x18]
movss xmm0, dword [edx]
ucomiss xmm0, dword [0x1003b3b0]
lahf
test ah, 0x44
jp 0x10015fe7
mov dword [ebp - 0x244], 1
jmp 0x10015ff1
mov dword [ebp - 0x244], 0
cvtsi2ss xmm0, dword [ebp - 0x244]
mov eax, dword [ebp + 0x18]
movss dword [eax], xmm0
jmp 0x1001600e
mov ecx, dword [ebp + 0x18]
movss xmm0, dword [ebp + 0x28]
movss dword [ecx], xmm0
jmp 0x10016461
cmp dword [ebp + 8], 4
jne 0x10016461
mov edx, dword [ebp + 0x10]
push edx
push 0xff
push 0xff
push 0xff
push 0xff
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x220]
push ecx
push 0
mov edx, dword [0x10051038]
push edx
push 0x10051020
call fcn.10005890
add esp, 0x28
mov eax, dword [ebp - 0x21c]
add eax, 1
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x220]
add ecx, 0x55
mov dword [ebp - 0x220], ecx
push 0xff
push 0xe9
push 0xe9
push 0xe9
push 0x10
push 0x10
mov edx, dword [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x220]
push eax
mov ecx, 0x10051020
call fcn.100059e0
push 0x10
push 0x10
mov ecx, dword [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x220]
push edx
mov ecx, 0x10050ec4
call fcn.10019c30
movzx eax, al
test eax, eax
je 0x1001612b
mov ecx, 0x10050ec4
call fcn.10018e70
movzx ecx, al
test ecx, ecx
je 0x100160f9
movzx edx, byte [ebp - 0x221]
test edx, edx
jne 0x100160f9
mov eax, dword [ebp + 0x18]
movss xmm0, dword [eax]
subss xmm0, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x18]
movss dword [ecx], xmm0
mov ecx, 0x10050ec4
call fcn.10018ee0
movzx edx, al
test edx, edx
je 0x1001612b
movzx eax, byte [ebp - 0x221]
test eax, eax
jne 0x1001612b
mov ecx, dword [ebp + 0x18]
movss xmm0, dword [ecx]
subss xmm0, dword [0x1003c1ac]
mov edx, dword [ebp + 0x18]
movss dword [edx], xmm0
mov eax, dword [0x100510c4]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
mov eax, dword [0x10050e88]
cmp eax, dword [edx + 4]
jle 0x10016194
push 0x10050e88
call fcn.1001d43e
add esp, 4
cmp dword [0x10050e88], 0xffffffff
jne 0x10016194
mov dword [ebp - 4], 0
push 0x1003c170
mov ecx, 0x10050e70
call fcn.10003630
push 0x1003a1e0
call fcn.1001d811
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x10050e88
call fcn.1001d3ed
add esp, 4
mov ecx, 0x10050e70
call fcn.1000a520
push eax
push 0xff
push 0xe9
push 0xe9
push 0xe9
mov ecx, dword [ebp - 0x21c]
sub ecx, 3
push ecx
cvtsi2sd xmm0, dword [ebp - 0x220]
addsd xmm0, qword [0x1003c188]
cvttsd2si edx, xmm0
push edx
push 1
mov eax, dword [0x10051038]
push eax
push 0x10051020
call fcn.10005890
add esp, 0x28
mov ecx, dword [0x100510c4]
mov edx, dword fs:[0x2c]
mov eax, dword [edx + ecx*4]
mov ecx, dword [0x10050ea4]
cmp ecx, dword [eax + 4]
jle 0x10016252
push 0x10050ea4
call fcn.1001d43e
add esp, 4
cmp dword [0x10050ea4], 0xffffffff
jne 0x10016252
mov dword [ebp - 4], 1
push 0x1003c164
mov ecx, 0x10050e8c
call fcn.10003630
push 0x1003a200
call fcn.1001d811
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x10050ea4
call fcn.1001d3ed
add esp, 4
mov edx, dword [ebp + 0x18]
cvtss2sd xmm0, dword [edx]
sub esp, 8
movsd qword [esp], xmm0
mov ecx, 0x10050e8c
call fcn.1000a520
push eax
push 0xff
push 0xff
push 0xff
push 0xff
mov eax, dword [ebp - 0x21c]
sub eax, 2
push eax
mov ecx, dword [ebp - 0x220]
add ecx, 0xa
cvtsi2sd xmm0, ecx
addsd xmm0, qword [0x1003c190]
cvttsd2si edx, xmm0
push edx
push 1
mov eax, dword [0x10051038]
push eax
push 0x10051020
call fcn.10005890
add esp, 0x30
mov ecx, dword [ebp - 0x220]
add ecx, 0x2c
mov dword [ebp - 0x220], ecx
push 0xff
push 0x33
push 0x33
push 0x33
push 0x10
push 0x10
mov edx, dword [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x220]
push eax
mov ecx, 0x10051020
call fcn.100059e0
push 0x10
push 0x10
mov ecx, dword [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x220]
push edx
mov ecx, 0x10050ec4
call fcn.10019c30
movzx eax, al
test eax, eax
je 0x10016373
mov ecx, 0x10050ec4
call fcn.10018e70
movzx ecx, al
test ecx, ecx
je 0x10016341
movzx edx, byte [ebp - 0x221]
test edx, edx
jne 0x10016341
mov eax, dword [ebp + 0x18]
movss xmm0, dword [eax]
addss xmm0, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x18]
movss dword [ecx], xmm0
mov ecx, 0x10050ec4
call fcn.10018ee0
movzx edx, al
test edx, edx
je 0x10016373
movzx eax, byte [ebp - 0x221]
test eax, eax
jne 0x10016373
mov ecx, dword [ebp + 0x18]
movss xmm0, dword [ecx]
addss xmm0, dword [0x1003c1ac]
mov edx, dword [ebp + 0x18]
movss dword [edx], xmm0
mov eax, dword [0x100510c4]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
mov eax, dword [0x10050ec0]
cmp eax, dword [edx + 4]
jle 0x100163dc
push 0x10050ec0
call fcn.1001d43e
add esp, 4
cmp dword [0x10050ec0], 0xffffffff
jne 0x100163dc
mov dword [ebp - 4], 2
push 0x1003c174
mov ecx, 0x10050ea8
call fcn.10003630
push 0x1003a1f0
call fcn.1001d811
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x10050ec0
call fcn.1001d3ed
add esp, 4
mov ecx, 0x10050ea8
call fcn.1000a520
push eax
push 0xff
push 0xe9
push 0xe9
push 0xe9
mov ecx, dword [ebp - 0x21c]
sub ecx, 3
push ecx
cvtsi2sd xmm0, dword [ebp - 0x220]
addsd xmm0, qword [0x1003c188]
cvttsd2si edx, xmm0
push edx
push 1
mov eax, dword [0x10051038]
push eax
push 0x10051020
call fcn.10005890
add esp, 0x28
mov ecx, dword [ebp + 0x18]
movss xmm0, dword [ebp + 0x1c]
comiss xmm0, dword [ecx]
jbe 0x10016448
mov edx, dword [ebp + 0x18]
movss xmm0, dword [ebp + 0x20]
movss dword [edx], xmm0
mov eax, dword [ebp + 0x18]
movss xmm0, dword [eax]
comiss xmm0, dword [ebp + 0x20]
jbe 0x10016461
mov ecx, dword [ebp + 0x18]
movss xmm0, dword [ebp + 0x1c]
movss dword [ecx], xmm0
cmp dword [ebp + 8], 2
jne 0x10016473
mov dword [ebp - 0x248], 2
jmp 0x1001647d
mov dword [ebp - 0x248], 1
mov edx, dword [ebp - 0x248]
push edx
mov ecx, dword [ebp - 0x228]
call fcn.10018f20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001d4a2
mov esp, ebp
pop ebp
ret 0x28