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

Disassembly:
sub esp, 0x108
mov eax, dword [esp + 0x10c]
push ebx
push ebp
mov ebx, ecx
push esi
push edi
test eax, eax
mov dword [esp + 0x10], ebx
mov esi, 0x1bb
je 0x508712
push 0xff
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea ecx, [esp + 0x24]
push 0x581840
push ecx
mov byte [esp + 0x12b], 0
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x14
test eax, eax
je 0x5084f9
mov byte [eax], 0
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov esi, eax
add esp, 4
cmp esi, 1
jl 0x508712
cmp esi, 0xffff
jg 0x508712
lea edx, [esp + 0x18]
mov ecx, 0x593b60
push edx
call fcn.0042d8e0
mov edi, eax
test edi, edi
jne 0x508528
lea eax, [esp + 0x18]
push esi
push eax
mov ecx, ebx
call fcn.00508950
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 4
mov al, byte [edi + 0xd8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea esi, [edi + 0xd8]
test al, al
je 0x5085f0
call ebx
push 0xff
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ebp, eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea edx, [esp + 0x24]
push 0x581840
push edx
mov byte [esp + 0x12b], 0
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x14
test eax, eax
je 0x508586
mov byte [eax], 0
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
jmp 0x50858b
mov eax, 0x1bb
mov ecx, dword [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00508950
cmp eax, 1
jne 0x5085f0
call ebx
mov ecx, dword [esp + 0x11c]
sub eax, ebp
push eax
push ecx
push esi
mov ecx, 0x593b60
call fcn.0042daf0
mov ecx, dword [esp + 0x10]
push esi
push edi
call fcn.005087b0
mov eax, dword [edi + 0xd0]
xor esi, esi
cmp eax, esi
je 0x5085dd
push eax
call fcn.004c2eb0
add esp, 4
mov dword [edi + 0xd0], esi
mov ecx, dword [edi + 0x15c]
cmp ecx, esi
je 0x508789
jmp 0x50877c
mov eax, dword [edi + 0xd4]
mov esi, dword [edi + 0xd0]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x14], ebp
jle 0x5086c7
lea eax, [edi + 0xd8]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x5086a8
cmp dword [esi + 0x94], 0x186a0
je 0x5086a8
call ebx
push 0xff
lea edx, [esp + 0x1c]
push esi
push edx
mov ebp, eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea eax, [esp + 0x24]
push 0x581840
push eax
mov byte [esp + 0x12b], 0
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x14
test eax, eax
je 0x508673
mov byte [eax], 0
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
jmp 0x508678
mov eax, 0x1bb
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00508950
cmp eax, 1
je 0x508721
mov edx, dword [esp + 0x11c]
push 0xf4240
push edx
push esi
mov ecx, 0x593b60
call fcn.0042daf0
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0xd4]
inc eax
add esi, 0xa0
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x50860a
xor ebp, ebp
mov edx, dword [esp + 0x11c]
mov ecx, 0x593b60
push edx
call fcn.0042de90
mov eax, dword [edi + 0xd0]
cmp eax, ebp
je 0x5086f2
push eax
call fcn.004c2eb0
add esp, 4
mov dword [edi + 0xd0], ebp
mov ecx, dword [edi + 0x15c]
cmp ecx, ebp
je 0x508709
push 1
call fcn.0040ae20
mov dword [edi + 0x15c], ebp
push edi
call fcn.004c2eb0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret 4
mov eax, dword [esp + 0x11c]
mov ecx, 0x593b60
push eax
push esi
call fcn.0042dc50
call ebx
mov ecx, dword [esp + 0x11c]
sub eax, ebp
push eax
push ecx
push esi
mov ecx, 0x593b60
call fcn.0042daf0
mov ecx, dword [esp + 0x10]
push esi
push edi
call fcn.005087b0
mov eax, dword [edi + 0xd0]
xor esi, esi
cmp eax, esi
je 0x508772
push eax
call fcn.004c2eb0
add esp, 4
mov dword [edi + 0xd0], esi
mov ecx, dword [edi + 0x15c]
cmp ecx, esi
je 0x508789
push 1
call fcn.0040ae20
mov dword [edi + 0x15c], esi
push edi
call fcn.004c2eb0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 4