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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x575fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5c31c8]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x5c31c8]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x24], edi
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp byte [edi + 0x380], bl
je 0x49a898
mov al, 1
jmp 0x49acaa
mov eax, dword [edi + 0x388]
or eax, dword [edi + 0x38c]
jne 0x49a8d4
lea eax, [esp + 0x2c]
push eax
call fcn.0053ea80
pop ecx
mov ecx, dword [eax]
mov dword [edi + 0x388], ecx
mov eax, dword [eax + 4]
mov dword [edi + 0x38c], eax
mov eax, dword [edi + 0x58c]
mov eax, dword [eax + 0x368]
mov dword [edi + 0x390], eax
push 1
mov ecx, edi
call fcn.0049ed36
cmp byte [edi + 0x328], bl
jne 0x49ac9a
cmp byte [edi + 0x300], bl
jne 0x49ac9a
cmp byte [edi + 0x5f6], bl
jne 0x49aa2c
cmp byte [edi + 0x5f5], bl
jne 0x49aa2c
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x60], ebx
mov eax, dword [edi + 0x590]
mov ecx, dword [eax + 0x268]
test ecx, ecx
jne 0x49a936
mov dword [esp + 0x1c], ebx
jmp 0x49aa17
lea eax, [esp + 0x18]
push eax
call fcn.00457cd4
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esp + 0x1c]
je 0x49aa15
sub esp, 0x10
lea eax, [ebx + 4]
mov edi, esp
mov byte [eax + 0xa], 0xff
mov esi, ebx
push 1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x38]
mov ecx, dword [edi + 0x2d0]
call fcn.004a5574
mov ecx, dword [edi + 0x680]
push ebx
push 0xffffffffffffffff
call fcn.004a6049
cmp dword [edi + 0x610], 0
je 0x49aa0d
lea esi, [edi + 0x628]
mov ecx, esi
mov dword [esp + 0x2c], esi
call fcn.005383c0
lea eax, [esp + 0x38]
mov byte [esp + 0x60], 1
push eax
lea ecx, [ebx + 4]
call fcn.00450e8b
mov dword [esp + 0x28], eax
mov byte [esp + 0x60], 2
cmp dword [eax + 0x14], 8
jb 0x49a9c4
mov eax, dword [eax]
mov dword [esp + 0x28], eax
mov edi, dword [edi + 0x610]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [esp + 0x28]
sub eax, dword [edi + 4]
mov edi, dword [esp + 0x28]
push eax
push 0x58f984
push str.lansource
push dword [edi + 0x610]
call fcn.00532424
add esp, 0x14
lea ecx, [esp + 0x38]
push 0
push 1
call fcn.00401d84
mov ecx, esi
mov byte [esp + 0x60], 0
call fcn.005383d0
add ebx, 0x10
jmp 0x49a944
xor ebx, ebx
or dword [esp + 0x60], 0xffffffff
lea ecx, [esp + 0x18]
mov byte [edi + 0x5f5], 1
call fcn.00408f76
cmp dword [edi + 0x2c8], 0xffffffff
mov esi, 0xb8
jne 0x49aa7f
cmp dword [edi + 0xf4], 0
je 0x49aa7f
mov al, byte [edi + 0xfc]
test al, al
je 0x49aa7f
mov al, byte [edi + 0xd4]
test al, al
jne 0x49aa7f
mov al, byte [edi + 0x381]
test al, al
je 0x49aa7f
mov ecx, dword [edi + 0x58c]
lea eax, [esp + 0x38]
add ecx, esi
push eax
call fcn.00487783
xor ecx, ecx
inc ecx
cmp dword [eax + 0x10], ebx
je 0x49aa83
mov bl, cl
jmp 0x49aa83
mov ecx, dword [esp + 0x14]
test cl, 1
je 0x49aa95
push 0
push 1
lea ecx, [esp + 0x40]
call fcn.00401d3f
test bl, bl
je 0x49aab1
mov ecx, edi
call fcn.004950f1
xor ebx, ebx
mov byte [edi + 0xd4], 1
mov byte [edi + 0xf1], bl
jmp 0x49aab3
xor ebx, ebx
mov ecx, edi
call fcn.004a03f1
mov ecx, dword [edi + 0x2d0]
push edi
call fcn.004a57bb
mov ecx, edi
call fcn.0049afff
cmp byte [edi + 0x2e0], 0
jne 0x49ab63
mov eax, dword [edi + 0x324]
test eax, eax
je 0x49aafd
cmp eax, 3
je 0x49aafd
cmp eax, 0x15
je 0x49aafd
cmp eax, 0x10
je 0x49aafd
cmp eax, 0x14
je 0x49aafd
cmp eax, 0xd
jne 0x49ab63
cmp dword [edi + 0xf4], 0
ja 0x49ab0d
mov byte [edi + 0x6cc], 1
cmp dword [edi + 0x67c], 0xffffffff
jne 0x49ab1c
mov dword [edi + 0x67c], ebx
mov ecx, edi
call fcn.0049cdc0
mov ecx, dword [edi + 0x58c]
cmp dword [edi + 0x324], ebx
jne 0x49ab63
mov al, byte [ecx + esi + 0xc8]
test al, al
je 0x49ab63
cmp byte [ecx + esi + 0xb7], 0
je 0x49ab63
cmp byte [ecx + esi + 0xb8], 0
je 0x49ab63
cmp dword [edi + 0x67c], 0xffffffff
jne 0x49ab63
mov dword [edi + 0x67c], 2
cmp byte [edi + 0x664], 0
jne 0x49abc4
mov eax, dword [edi + 0x324]
cmp eax, 0x10
je 0x49ab7c
cmp eax, 0x14
jne 0x49abc4
lea edx, [edi + 0x248]
lea ecx, [esp + 0x38]
call fcn.00532cea
mov dword [esp + 0x60], 3
push dword [edi + 0x10c]
mov ecx, dword [edi + 0x58c]
push eax
call fcn.00485ffe
mov ecx, eax
call fcn.004a40cb
or dword [esp + 0x60], 0xffffffff
lea ecx, [esp + 0x38]
push ebx
push 1
call fcn.00401d84
mov byte [edi + 0x664], 1
cmp dword [edi + 0x5c8], ebx
je 0x49ac9a
lea ebx, [edi + 0x5a4]
mov ecx, ebx
call fcn.0047380a
test al, al
je 0x49ac9a
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x60], 4
lea esi, [edi + 0x5ac]
push eax
mov ecx, esi
call fcn.004a8404
mov ecx, esi
call fcn.0045a206
mov dword [edi + 0x5a8], 0x32
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx], eax
test eax, eax
jne 0x49ac30
mov dword [ebx], 1
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x18]
and dword [edi + 0x5ec], 0
sar eax, 4
test eax, eax
je 0x49ac8c
sub esp, 0xc
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.0043251f
sub esp, 0x18
mov byte [esp + 0x84], 5
lea eax, [edi + 0x258]
mov ecx, esp
push eax
lea eax, [edi + 0x248]
push eax
call fcn.0042e705
lea ecx, [edi + 0x5b8]
mov byte [esp + 0x84], 4
call fcn.004a1227
or dword [esp + 0x60], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00408f76
mov ecx, edi
call fcn.0049c0da
mov ecx, edi
call fcn.004a0abe
xor al, al
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0055daac
mov esp, ebp
pop ebp
ret