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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5b4224]
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [0x5a7340]
push esi
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [0x5b4228]
xor edi, edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 8], edi
call fcn.0049d244
test ax, ax
je 0x49d41a
mov eax, dword [0x5b4264]
cmp eax, edi
je 0x49d321
call eax
test ax, ax
jne 0x49d41a
mov eax, dword [ebp + 8]
push edi
push dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0x2c], di
push dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
call fcn.0049cc8e
mov dword [ebp - 4], eax
mov eax, dword [0x5b422c]
add esp, 0xc
cmp eax, dword [0x5b4258]
jae 0x49d394
cmp dword [ebp - 4], edi
jne 0x49d3b9
call fcn.0049d824
cmp eax, edi
je 0x49d41a
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
mov dword [eax + 0x20], edi
mov dword [eax + 0x18], edi
mov ecx, dword [0x5b4238]
mov dword [eax + 0x1c], ecx
inc dword [0x5b4238]
dec dword [eax + 0x24]
jmp 0x49d3b9
cmp dword [ebp - 4], edi
je 0x49d3b9
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], edi
jne 0x49d3b9
cmp word [0x5b4268], di
jne 0x49d3b9
push edi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0049ccdc
add esp, 0xc
push edi
mov dword [ebp - 4], edi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0049cc8e
add esp, 0xc
test eax, eax
je 0x49d408
mov eax, dword [0x5b421c]
mov dword [ebp - 0x14], eax
mov eax, dword [0x5a7344]
mov dword [ebp - 0x10], eax
mov eax, dword [0x5b4210]
cmp dword [ebp - 0x10], edi
mov dword [ebp - 0xc], eax
jl 0x49d41a
push edi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0049cc8e
add esp, 0xc
test eax, eax
jne 0x49d41a
mov word [0x5b4270], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x5a733c]
jle 0x49d422
mov word [0x5b4270], di
xor ax, ax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [0x5b4250]
push 1
pop ebx
cmp eax, edi
mov word [0x5b423c], bx
je 0x49d439
push ebx
call eax
pop ecx
mov eax, dword [0x5b7bf4]
push edi
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xc0]
mov dword [0x5b7bf4], eax
lea eax, [ebp - 0xb0]
push eax
mov dword [ebp - 0x3c], 0x5b7bf4
mov dword [ebp - 0xbc], edi
call fcn.0052a5c0
pop ecx
test eax, eax
pop ecx
jne 0x49d70f
push dword [ebp - 0x10]
xor esi, esi
push dword [ebp - 0x14]
call fcn.004abd92
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
cmp dword [eax + 0x10], edi
pop ecx
je 0x49d49f
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
cmp word [eax + 0x26], bx
jne 0x49d49f
mov eax, dword [ebp - 8]
or dword [eax + 0x24], ebx
push dword [ebp - 8]
call fcn.004ad8c9
test ax, ax
pop ecx
jne 0x49d702
mov eax, dword [ebp - 8]
mov dword [0x5b4288], eax
call fcn.004c096e
cmp word [ebp - 0x2c], di
mov dword [ebp - 0x4c], eax
jne 0x49d702
cmp dword [0x5b4240], edi
je 0x49d515
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 8]
call fcn.004ac27a
add esp, 0xc
push dword [ebp - 0xc]
push dword [ebp - 0x48]
call fcn.004a5f71
pop ecx
mov ebx, 0x8000
pop ecx
add eax, ebx
push dword [ebp - 0xc]
sar eax, 0x10
push dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
call fcn.004a5f71
add eax, ebx
pop ecx
sar eax, 0x10
pop ecx
mov dword [ebp - 0x38], eax
cmp word [ebp - 0x2c], di
jne 0x49d702
cmp dword [0x5b4240], edi
je 0x49d702
cmp word [0x5b4268], di
jne 0x49d609
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 8]
call fcn.004ae871
pop ecx
lea eax, [ebp - 0x70]
pop ecx
push dword [ebp - 0xc]
push dword [ebp - 0xc]
push eax
call fcn.004ade0f
add esp, 0xc
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0x49d8c7
mov dword [ebp - 0x54], 0x49d96b
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x50], edi
push dword [ebp - 0x38]
push dword [ebp - 0x28]
push edi
push edi
push dword [0x5b4240]
push dword [0x5b425c]
call dword [0x5b4244]
add esp, 0x24
mov dword [ebp - 0x1c], eax
call fcn.0049d824
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
jne 0x49d5ad
push 0x40000002
call fcn.00401daf
pop ecx
lea eax, [ebp - 0x70]
push edi
push eax
push dword [ebp - 0x1c]
call sub.AGM.dll_Ordinal_16
add esp, 0xc
push dword [ebp - 0x1c]
call sub.AGM.dll_Ordinal_99
test al, al
pop ecx
jne 0x49d5f3
lea eax, [ebp - 0x34]
push eax
push 0x49d8a3
push dword [ebp - 0xc]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 8]
push dword [0x5b425c]
call dword [0x5b4230]
add esp, 0x20
mov esi, eax
push dword [ebp - 0x1c]
call sub.AGM.dll_Ordinal_99
test al, al
pop ecx
je 0x49d609
mov eax, dword [ebp - 8]
xor esi, esi
or dword [eax + 0x24], 1
cmp word [ebp - 0x2c], di
jne 0x49d702
cmp si, di
je 0x49d702
call fcn.004c096e
mov ecx, dword [ebp - 4]
mov ebx, eax
mov eax, dword [ebp - 0x14]
sub ebx, dword [ebp - 0x4c]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 4]
mov ecx, dword [0x5b4238]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp - 4]
inc dword [0x5b4238]
dec dword [eax + 0x24]
cmp word [0x5b4268], di
jne 0x49d6e0
cmp word [0x5b4270], di
je 0x49d673
cmp ebx, dword [0x5b4258]
jb 0x49d6e0
push dword [ebp - 8]
call fcn.004ad8c9
test ax, ax
pop ecx
jne 0x49d6e0
push dword [ebp - 0x18]
call sub.AGM.dll_Ordinal_222
movsx esi, word [eax + 0x12]
imul esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
add esi, 0x1f
sar esi, 3
pop ecx
and esi, 0xfffffffc
imul esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], esi
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], ebx
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push dword [0x5b425c]
call dword [0x5b424c]
add esp, 0xc
add dword [0x5b4220], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
jmp 0x49d6f8
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], edi
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], edi
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], edi
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc0]
mov dword [eax], ecx
jmp 0x49d733
mov eax, dword [ebp - 0xb4]
and eax, 0xff0000
cmp eax, 0x70000
jne 0x49d733
push edi
push dword [ebp - 0xb4]
push dword [ebp - 0x14]
call fcn.00488ca3
add esp, 0xc
mov eax, dword [0x5b4250]
cmp eax, edi
je 0x49d740
push edi
call eax
pop ecx
cmp dword [ebp - 8], edi
mov dword [0x5b4288], edi
je 0x49d795
mov eax, dword [0x5b7bf4]
push edi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x110]
mov dword [0x5b7bf4], eax
lea eax, [ebp - 0x100]
push eax
mov dword [ebp - 0x44], 0x5b7bf4
mov dword [ebp - 0x10c], edi
call fcn.0052a5c0
pop ecx
test eax, eax
pop ecx
jne 0x49d795
push dword [ebp - 8]
call fcn.004abff0
mov eax, dword [ebp - 0x44]
pop ecx
mov ecx, dword [ebp - 0x110]
mov dword [eax], ecx
cmp dword [ebp - 0x1c], edi
je 0x49d7bb
push 0x5b4278
push edi
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [0x5b425c]
call dword [0x5b4260]
add esp, 0x1c
jmp 0x49d7f9
cmp word [ebp - 0x2c], di
jne 0x49d7f9
cmp dword [0x5b4240], edi
je 0x49d7f9
cmp word [0x5b4268], di
jne 0x49d7f9
cmp word [ebp - 0x24], di
jne 0x49d7f9
cmp dword [ebp - 4], edi
jne 0x49d7fe
mov eax, dword [0x5b4248]
cmp eax, edi
je 0x49d7f3
cmp word [0x5b4270], di
je 0x49d7f9
cmp dword [eax], edi
jne 0x49d7f9
mov dword [0x5b4224], edi
cmp dword [ebp - 4], edi
je 0x49d80d
mov eax, dword [ebp - 4]
push dword [ebp - 4]
dec dword [eax + 0x24]
call fcn.0049d864
pop ecx
mov ax, word [ebp - 0x2c]
mov word [0x5b423c], di
mov word [0x5b4270], di
jmp 0x49d41d