Function at 0x4986b0
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x58e88a
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov esi, dword [ebp + 8]
test esi, esi
jne 0x498708
lea eax, [esi + 3]
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [0x603dd8], 0
jne 0x49872e
mov eax, 1
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x30], eax
mov eax, esi
call fcn.004577f0
test al, al
jne 0x498c0c
mov eax, 0x7530
call fcn.00493180
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x98], 0
je 0x498bfc
mov esi, eax
cmp dword [esi + 0x74], 0
je 0x49880b
lea ecx, [esp + 0x60]
push ecx
call fcn.0042cc40
mov dword [esp + 0xb8], 0
lea edi, [esi + 0x2c]
push edi
mov dword [esp + 0x50], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0xb8], 1
lea edx, [esi + 0x5c]
lea eax, [esp + 0x60]
call fcn.00498e40
mov ebx, dword [esp + 0x74]
mov ebx, dword [ebx]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x10]
mov dword [esp + 0x80], ebx
mov ebx, dword [esp + 0x74]
push ebx
mov ebx, dword [esp + 0x64]
push ebx
mov ebx, dword [esp + 0x88]
push ebx
mov ebx, dword [esp + 0x6c]
lea eax, [esi + 0x10]
push ebx
push ecx
push edx
mov edx, dword [esp + 0x64]
push edx
push eax
call fcn.004993d0
mov byte [esp + 0xb8], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0xb8], 0xffffffff
lea eax, [esp + 0x60]
push eax
call fcn.004229a0
lea eax, [esi + 0x44]
push eax
mov dword [esp + 0x4c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0xb8], 2
cmp dword [esi + 0x94], 0
je 0x498979
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x90]
mov ecx, dword [ecx]
mov edx, dword [eax + 0x78]
add eax, 0x78
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov edi, dword [eax + 0x18]
mov eax, dword [eax]
test esi, esi
je 0x498869
cmp esi, eax
je 0x49886e
call fcn.004a35f3
mov ebx, dword [esp + 0x24]
cmp ebx, edi
je 0x498979
cmp byte [esp + 0x13], 0
jne 0x498886
mov byte [esp + 0x13], 1
test esi, esi
jne 0x498949
call fcn.004a35f3
cmp ebx, dword [esi + 0x18]
jne 0x49889d
call fcn.004a35f3
mov eax, dword [ebx + 0xc]
cmp dword [eax + 0x8174], 0
mov dword [esp + 0x34], eax
jne 0x49896b
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
lea edx, [esp + 0xa4]
push edx
push eax
call fcn.00427ef0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call fcn.004984e0
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x24]
mov esi, dword [eax]
mov ebx, dword [edi + 0x10]
add edi, 0x10
mov ecx, dword [edi + 0x14]
mov eax, dword [edi]
mov dword [esp + 0x5c], ecx
test ebx, ebx
je 0x498903
cmp ebx, eax
je 0x498908
call fcn.004a35f3
cmp esi, dword [esp + 0x5c]
je 0x498854
test ebx, ebx
jne 0x498950
call fcn.004a35f3
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x498927
call fcn.004a35f3
mov edx, dword [esi + 8]
cmp edx, dword [esp + 0x34]
je 0x498958
test ebx, ebx
jne 0x498954
call fcn.004a35f3
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x498945
call fcn.004a35f3
mov esi, dword [esi]
jmp 0x4988f2
mov esi, dword [esi]
jmp 0x498893
mov eax, dword [ebx]
jmp 0x49891d
mov eax, dword [ebx]
jmp 0x49893b
push esi
push ebx
lea ebx, [esp + 0xac]
call fcn.00422be0
jmp 0x498854
lea esi, [esp + 0x20]
call fcn.00422dc0
jmp 0x498854
mov dword [esp + 0xb8], 0xffffffff
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
cmp eax, dword [esp + 0x14]
jae 0x4989a3
call esi
mov dword [esp + 0x14], eax
call esi
sub eax, dword [esp + 0x14]
cmp eax, 0xbb8
jb 0x498bfc
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x24]
mov esi, dword [ecx]
mov edi, dword [eax + 0x10]
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], esi
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 0x14]
mov eax, dword [eax]
test edi, edi
je 0x4989e1
cmp edi, eax
je 0x4989e6
call fcn.004a35f3
cmp esi, ebx
je 0x498bc2
cmp byte [esp + 0x13], 0
jne 0x4989fa
mov byte [esp + 0x13], 1
test edi, edi
jne 0x498a6e
call fcn.004a35f3
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x498a0f
call fcn.004a35f3
mov ebx, dword [esi + 8]
cmp dword [ebx + 0x8174], 0
mov dword [esp + 0x1c], ebx
jne 0x498a76
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], esi
test edi, edi
jne 0x498a72
call fcn.004a35f3
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x498a3c
call fcn.004a35f3
mov edx, dword [esi]
push esi
push edi
mov edi, dword [esp + 0x1c]
lea ebx, [esp + 0x8c]
mov dword [esp + 0x44], edx
call fcn.00422be0
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x2c], esi
call fcn.004984e0
jmp 0x4989d0
mov eax, dword [edi]
jmp 0x498a05
mov eax, dword [edi]
jmp 0x498a32
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x8170]
add ecx, 0x11170
cmp eax, ecx
jbe 0x498b80
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, 0x11170
cmp eax, dword [ebx + 0x8170]
jbe 0x498b80
mov edx, dword [esp + 0x18]
push edx
mov esi, ebx
mov dword [ebx + 0x8178], 1
call fcn.004985b0
test eax, eax
jne 0x498b14
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], esi
test edi, edi
jne 0x498b10
call fcn.004a35f3
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x498ae2
call fcn.004a35f3
mov eax, dword [esp + 0x2c]
mov esi, dword [eax]
push eax
push edi
mov edi, dword [esp + 0x1c]
lea ebx, [esp + 0x94]
call fcn.00422be0
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x2c], esi
call fcn.004984e0
jmp 0x4989d0
mov eax, dword [edi]
jmp 0x498ad8
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, dword [ebx + 0x8170]
add ecx, 0x493e0
cmp eax, ecx
jbe 0x498b80
call esi
sub eax, 0x493e0
cmp eax, dword [ebx + 0x8170]
jbe 0x498b80
mov ebx, dword [esp + 0x2c]
lea esi, [esp + 0x40]
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ebx
call fcn.00498ff0
push ebx
push edi
mov edi, dword [esp + 0x1c]
lea ebx, [esp + 0x9c]
call fcn.00422be0
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x2c], edx
call fcn.004984e0
mov esi, dword [esp + 0x2c]
jmp 0x4989d0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
cmp dword [ebx + 0x8170], eax
jbe 0x498b98
call esi
mov dword [ebx + 0x8170], eax
test edi, edi
jne 0x498bbe
call fcn.004a35f3
xor eax, eax
mov esi, dword [esp + 0x2c]
cmp esi, dword [eax + 0x14]
jne 0x498bb1
call fcn.004a35f3
mov eax, dword [esi]
mov dword [esp + 0x2c], eax
mov esi, eax
jmp 0x4989d0
mov eax, dword [edi]
jmp 0x498ba3
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
cmp dword [0x603db4], 9
mov dword [esp + 0x14], eax
jne 0x498bfc
call esi
mov edi, dword [esp + 0x30]
cmp edi, eax
jbe 0x498bfc
call esi
sub eax, 0x927c0
cmp edi, eax
jae 0x498bfc
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00498c30
call esi
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
call fcn.004577f0
test al, al
je 0x49874f
xor eax, eax
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4