Function at 0x431808
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x45c3d4], 0
jne 0x43181f
or eax, 0xffffffff
jmp 0x431e2b
cmp dword [0x187a93c], 0
je 0x431838
mov dword [ebp - 0x24], 0xe
mov dword [ebp - 0x28], 4
jmp 0x43185d
cmp dword [0x187a944], 0
jne 0x43184f
mov dword [ebp - 0x24], 7
xor edx, edx
mov dword [ebp - 0x28], edx
jmp 0x43185d
mov dword [ebp - 0x24], 0xb
mov dword [ebp - 0x28], 3
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xffffffff
xor ecx, ecx
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x44]
push edx
mov ecx, dword [0x45c3d4]
push dword [ecx]
call sub.KERNEL32.DLL_ClearCommError
test eax, eax
je 0x431890
cmp dword [ebp - 0x44], 0
je 0x431899
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x14
jl 0x431871
cmp dword [0x44f8f4], 0
jne 0x4318b4
cmp dword [ebp - 0x48], 0
ja 0x4318b4
push 0xffffffffffffffff
push 0x460a09
call fcn.0043fd18
mov eax, 0xc7
sub eax, dword [0x45d5bc]
mov dword [ebp - 8], eax
push dword [ebp - 8]
push 0x187bc70
call fcn.0043fbbc
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 8]
jle 0x4318e0
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jle 0x431e28
xor eax, eax
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x10]
jge 0x4319dc
cmp dword [0x45d5b8], 0xc6
jl 0x43190f
xor ecx, ecx
mov dword [0x45d5b8], ecx
mov eax, dword [ebp - 0x14]
mov dl, byte [eax + 0x187bc70]
mov ecx, dword [0x45d5b8]
mov byte [ecx + 0x187bae0], dl
inc dword [0x45d5b8]
push 0x45d5ac
call fcn.004415f8
pop ecx
cmp eax, dword [0x45d5b8]
jb 0x43195d
mov eax, dword [0x45d5b8]
mov dl, byte [eax + 0x187badf]
mov ecx, dword [0x45d5b8]
cmp dl, byte [ecx + 0x45d5ab]
je 0x43195d
xor eax, eax
mov dword [0x45d5b8], eax
cmp dword [0x45d5b8], 2
jl 0x4319cd
mov edx, dword [0x45d5b8]
movsx ecx, byte [edx + 0x187bade]
cmp ecx, 0xd
jne 0x4319cd
mov eax, dword [0x45d5b8]
movsx edx, byte [eax + 0x187badf]
cmp edx, 0xa
jne 0x4319cd
xor ecx, ecx
mov dword [0x45d5c0], ecx
mov dword [0x45d5bc], ecx
mov eax, dword [0x45d5b8]
mov byte [eax + 0x187bae0], 0
xor edx, edx
mov dword [0x45d5b8], edx
push dword [ebp + 8]
call fcn.004315bc
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x4319cd
mov dword [0x45b028], 1
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x10]
jl 0x4318fb
cmp dword [ebp - 0x2c], 0
jl 0x4319ea
mov eax, dword [ebp - 0x2c]
jmp 0x431e2b
mov edx, dword [0x45d5bc]
mov dword [ebp - 8], edx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jge 0x431a6d
mov edx, dword [ebp - 0xc]
cmp byte [edx + 0x187bc70], 0
je 0x431a62
mov ecx, dword [ebp - 0xc]
movsx eax, byte [ecx + 0x187bc70]
push eax
cmp dword [0x187a93c], 0
je 0x431a27
mov edx, 1
jmp 0x431a35
xor edx, edx
cmp dword [0x187a944], 0
je 0x431a35
add edx, 2
push dword [edx*4 + 0x45d578]
call fcn.004416f1
add esp, 8
test eax, eax
je 0x431a62
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x187bc70]
mov eax, dword [0x45d5bc]
mov byte [eax + 0x187bba8], cl
inc dword [0x45d5bc]
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x10]
jl 0x431a00
mov ecx, dword [ebp - 8]
cmp ecx, dword [0x45d5bc]
je 0x431e15
mov eax, dword [0x45d5bc]
mov byte [eax + 0x187bba8], 0
push 0x45aff0
push 0x187bba8
call fcn.00404758
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x431de1
mov edx, dword [ebp - 0x34]
sub edx, 0x187bba8
add edx, 2
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x24]
jl 0x431b1a
cmp dword [0x187a944], 0
je 0x431b1a
push 0x45d56c
push 0x187badc
call fcn.004417dc
add esp, 8
test eax, eax
jne 0x431af1
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x24]
mov dl, byte [eax + 0x187bba8]
cmp dl, byte [0x187badc]
je 0x431b5d
push 0x45d56c
call fcn.004415f8
pop ecx
push eax
mov ecx, 0x187bba8
add ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0x24]
push ecx
push 0x187badc
call fcn.00441874
add esp, 0xc
test eax, eax
je 0x431b5d
cmp dword [0x187a944], 0
jne 0x431da3
cmp dword [0x187a93c], 0
je 0x431b5d
push str.Mtr5
call fcn.004415f8
pop ecx
push eax
push str.Mtr5
mov eax, 0x187bba8
add eax, dword [ebp - 4]
sub eax, dword [ebp - 0x24]
push eax
call fcn.00441874
add esp, 0xc
test eax, eax
jne 0x431da3
push dword [ebp - 0x24]
mov edx, 0x187bba8
add edx, dword [ebp - 4]
sub edx, dword [ebp - 0x24]
push edx
mov ecx, dword [0x45d5c0]
inc dword [0x45d5c0]
imul eax, ecx, 0xe
add eax, 0x187bd38
push eax
call fcn.004413d8
add esp, 0xc
cmp dword [0x45d5c0], 1
jle 0x431bdd
push dword [ebp - 0x24]
imul edx, dword [0x45d5c0], 0xe
add edx, 0x187bd2a
push edx
push 0x187bd38
call fcn.00441710
add esp, 0xc
test eax, eax
je 0x431bdd
push dword [ebp - 0x24]
imul ecx, dword [0x45d5c0], 0xe
add ecx, 0x187bd2a
push ecx
push 0x187bd38
call fcn.004413d8
add esp, 0xc
mov dword [0x45d5c0], 1
cmp dword [0x45d5c0], 2
jne 0x431da3
mov eax, dword [ebp - 0x28]
mov dl, byte [eax + 0x187bd3c]
mov byte [ebp - 0x35], dl
movsx ecx, byte [ebp - 0x35]
cmp ecx, 0x30
jne 0x431c0d
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 2
jmp 0x431c78
movsx edx, byte [ebp - 0x35]
cmp edx, 0x38
jne 0x431c26
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x20], 2
jmp 0x431c78
movsx ecx, byte [ebp - 0x35]
cmp ecx, 0x37
jne 0x431c3f
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x20], 2
jmp 0x431c78
movsx eax, byte [ebp - 0x35]
cmp eax, 0x35
jne 0x431c58
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x20], 3
jmp 0x431c78
movsx edx, byte [ebp - 0x35]
cmp edx, 0x34
jne 0x431c71
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x20], 2
jmp 0x431c78
mov dword [ebp - 0x18], 0xffffffff
cmp dword [ebp - 0x18], 0
jl 0x431d83
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
xor eax, eax
mov dword [ebp - 0xc], eax
fld dword [ebp - 0x3c]
fmul dword [0x431e30]
mov edx, dword [ebp - 0xc]
lea ecx, [edx + 0x187bd38]
mov eax, dword [ebp - 0x28]
movsx edx, byte [ecx + eax]
mov dword [ebp - 0x54], edx
fild dword [ebp - 0x54]
faddp st(1)
fsub dword [0x431e34]
fstp dword [ebp - 0x3c]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 4
jl 0x431c8c
push dword [ebp - 0x20]
call fcn.00449044
pop ecx
fdivr dword [ebp - 0x3c]
fstp dword [ebp - 0x3c]
push 0x45d56c
call fcn.004415f8
pop ecx
push eax
mov ecx, 0x187bba8
add ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0x24]
push ecx
push 0x187badc
call fcn.00441824
add esp, 0xc
push 0x45d56c
call fcn.004415f8
pop ecx
mov byte [eax + 0x187badc], 0
mov eax, dword [ebp - 0x18]
shl eax, 4
mov edx, dword [0x187ab64]
mov ecx, dword [edx + eax]
mov dword [ebp - 0x1c], ecx
fld dword [ebp - 0x3c]
add esp, 0xfffffff8
fstp qword [esp]
push dword [ebp - 0x20]
push 0x460a0b
imul eax, dword [ebp - 0x1c], 0xfc
add eax, 0x6525bc
push eax
call fcn.00444f70
add esp, 0x14
push 0x460a10
imul edx, dword [ebp - 0x1c], 0xfc
add edx, 0x6525bc
push edx
call fcn.004414ec
add esp, 8
mov ecx, dword [ebp - 0x18]
push dword [ecx*4 + 0x45bf2c]
imul eax, dword [ebp - 0x1c], 0xfc
add eax, 0x6525bc
push eax
call fcn.004414ec
add esp, 8
mov dword [0x45b028], 1
xor edx, edx
mov dword [0x45d5c0], edx
xor ecx, ecx
mov dword [0x45d5bc], ecx
push 0
call fcn.00429b70
pop ecx
mov eax, dword [ebp - 0x18]
jmp 0x431e2b
mov edx, 0x187bba8
add edx, dword [ebp - 4]
push edx
push 0x187bba8
call fcn.004415c8
add esp, 8
mov ecx, dword [ebp - 4]
sub dword [0x45d5bc], ecx
push 0x45aff0
push 0x187bba8
call fcn.00404758
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x431aa7
mov eax, dword [ebp - 0x24]
dec eax
cmp eax, dword [0x45d5bc]
jge 0x431e15
mov edx, 0x187bba8
add edx, dword [0x45d5bc]
mov ecx, dword [ebp - 0x24]
dec ecx
sub edx, ecx
push edx
push 0x187bba8
call fcn.004415c8
add esp, 8
mov eax, dword [ebp - 0x24]
dec eax
mov dword [0x45d5bc], eax
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 0x30]
cmp eax, 0xbb8
jb 0x43186c
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret