Function at 0x4962ec
Capabilities:
Access peb ldr_data
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4962f5
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00403fd8
mov eax, dword [ebp - 8]
call fcn.00403fd8
xor eax, eax
push ebp
push 0x496c21
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x438], 0
mov byte [ebp - 0x21], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x418], bl
mov eax, dword [ebp - 4]
mov byte [eax + 0x331], 0
mov eax, dword [ebp - 4]
call fcn.0048bfb8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x370], 0
je 0x496bf9
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00494ad0
xor eax, eax
push ebp
push 0x49639b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x20
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x40f614]
call fcn.00413c4c
mov dword [ebp - 0x20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4963db
mov eax, dword [ebp - 0x20]
call fcn.004136b0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x100], eax
mov dword [ecx + 0x104], edx
lea eax, [ebp - 0x20]
call fcn.004556ac
xor edx, edx
push ebp
push 0x496bef
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x48a09c]
call fcn.0048a478
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x310], esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2d0]
mov eax, esi
call fcn.0048ebec
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x440]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov dword [eax + 0xd0], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x30], edx
mov dword [eax + 0x2c], 0x497e00
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x94]
mov dword [eax + 0x94], ecx
mov ecx, dword [edx + 0x98]
mov dword [eax + 0x98], ecx
mov edx, dword [ebp - 4]
mov dl, byte [edx + 0x31c]
mov byte [eax + 0x31c], dl
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x324]
mov dword [eax + 0x324], edx
mov byte [eax + 0x318], 1
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x36c]
call fcn.0048a87c
mov eax, dword [ebp - 4]
mov dword [eax + 0x408], 0
mov dword [eax + 0x40c], 0
cmp bl, 1
je 0x4964fa
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe8], 0xa
je 0x4964fa
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe8], 0x10
je 0x4964fa
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe8], 0xb
je 0x4964fa
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe8], 0xd
jne 0x496566
mov bl, 1
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0049736c
test al, al
je 0x49652c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x370], 0
je 0x49652c
mov eax, dword [ebp - 0x14]
mov edx, dword [0x5536c4]
mov edx, dword [edx]
call fcn.00403f34
jne 0x496566
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x2e0]
cmp ax, 0xe2
je 0x496541
test ax, ax
jne 0x496564
mov eax, dword [ebp - 4]
mov byte [eax + 0x438], 1
mov ecx, dword [0x5536c4]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407d18]
call fcn.0040ba70
call fcn.0040361c
xor ebx, ebx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x370], 0
jne 0x496586
mov eax, dword [ebp - 4]
mov byte [eax + 0x438], 2
call fcn.004036bc
jmp 0x496bf9
test bl, bl
je 0x496619
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x390]
call fcn.004088d0
mov edx, dword [ebp - 0x28]
mov eax, 0x496c58
call fcn.0040410c
test eax, eax
jle 0x4965cd
push ebp
call fcn.004960dc
pop ecx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x438], 2
jne 0x4965cd
call fcn.004036bc
jmp 0x496bf9
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00494d60
test al, al
jne 0x4966b0
mov eax, dword [ebp - 4]
mov byte [eax + 0x438], 2
mov eax, dword [ebp - 4]
mov byte [eax + 0x331], 1
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x491eac]
call fcn.0040ba70
call fcn.0040361c
call fcn.004036bc
jmp 0x496bf9
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x420]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x41c]
mov eax, dword [ebp - 4]
call fcn.00499c14
mov edx, dword [ebp - 4]
mov esi, dword [edx + 0x310]
mov dword [esi + 0xf8], eax
mov eax, esi
mov dl, 1
call fcn.0048d050
mov eax, dword [ebp - 4]
cmp word [eax + 0x122], 0
je 0x49667c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x120]
mov dword [eax + 0x120], ecx
mov ecx, dword [edx + 0x124]
mov dword [eax + 0x124], ecx
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0048fbe4
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.0048ed18
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.00403e2c
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0049778c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x370], 0
jne 0x4966d0
mov eax, dword [ebp - 4]
mov byte [eax + 0x438], 2
call fcn.004036bc
jmp 0x496bf9
mov dl, 0xf
mov eax, dword [ebp - 4]
call fcn.00497f10
test al, al
je 0x4966e8
call fcn.004036bc
jmp 0x496bf9
mov eax, dword [ebp - 4]
cmp word [eax + 0x122], 0
je 0x496719
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x120]
mov dword [eax + 0x120], ecx
mov ecx, dword [edx + 0x124]
mov dword [eax + 0x124], ecx
test bl, bl
je 0x49673f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x390]
call fcn.004088d0
mov edx, dword [ebp - 0x28]
mov eax, 0x496c58
call fcn.0040410c
test eax, eax
jne 0x49675c
push ebp
call fcn.004960dc
pop ecx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x438], 2
jne 0x49675c
call fcn.004036bc
jmp 0x496bf9
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x2e0]
cmp ax, 0x12c
jle 0x4967be
cmp ax, 0x258
jge 0x4967be
mov eax, dword [ebp - 4]
mov byte [eax + 0x438], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x3ca], 0
jne 0x496793
call fcn.004036bc
jmp 0x496bf9
mov byte [ebp - 0x22], 0
push 0xf
lea ecx, [ebp - 0x22]
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x3cc]
call dword [esi + 0x3c8]
cmp byte [ebp - 0x22], 0
jne 0x4967be
call fcn.004036bc
jmp 0x496bf9
mov eax, dword [ebp - 4]
test byte [eax + 0x2f1], 2
jne 0x4967d8
test bl, bl
jne 0x4967d8
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004984c4
mov eax, dword [ebp - 4]
cmp word [eax + 0x39a], 0
je 0x4967f7
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x39c]
call dword [ebx + 0x398]
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x334], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x331], 0
jne 0x496834
mov eax, dword [ebp - 4]
cmp byte [eax + 0x332], 0
jne 0x496834
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov edx, dword [ebp - 0xc]
call fcn.0048c770
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
xor ecx, ecx
xor edx, edx
call fcn.0048e504
mov eax, dword [ebp - 4]
cmp byte [eax + 0x331], 0
jne 0x496985
mov eax, dword [ebp - 4]
cmp byte [eax + 0x332], 0
jne 0x496985
mov eax, dword [ebp - 4]
cmp word [eax + 0x2e0], 0xc7
jge 0x496985
mov edx, 0x1d4c0
mov eax, dword [ebp - 4]
call fcn.0048d358
mov eax, dword [ebp - 4]
mov byte [eax + 0x330], 1
xor edx, edx
push ebp
push 0x49697e
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x33c]
call fcn.00403c40
jmp 0x49692d
push 0
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004971fc
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x33c]
call fcn.00403f34
je 0x49692d
mov eax, dword [ebp - 0x1c]
mov edx, dword [0x5536c4]
mov edx, dword [edx]
call fcn.00403f34
je 0x49692d
lea eax, [ebp - 0x1c]
mov edx, dword [0x5536c4]
mov edx, dword [edx]
call fcn.00403c40
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a2], 0
je 0x496916
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3a4]
call dword [ebx + 0x3a0]
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x334]
mov edx, dword [ebp - 4]
mov dword [edx + 0x334], eax
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x2e0]
cmp ax, 0xc7
jge 0x49695e
test ax, ax
je 0x49695e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x370], 0
je 0x49695e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x332], 0
je 0x4968b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4969bb
mov eax, dword [ebp - 4]
call fcn.0048d3a8
mov eax, dword [ebp - 4]
mov byte [eax + 0x330], 0
ret
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a2], 0
je 0x4969a4
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3a4]
call dword [ebx + 0x3a0]
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x334]
mov edx, dword [ebp - 4]
mov dword [edx + 0x334], eax
mov byte [ebp - 0x21], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496bf9
cmp byte [ebp - 0x21], 0
jne 0x4969e4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
xor ecx, ecx
xor edx, edx
call fcn.0048e504
cmp byte [ebp - 0x21], 0
jne 0x496ae9
mov edx, dword [ebp - 4]
cmp byte [edx + 0x331], 0
jne 0x496ae9
mov edx, dword [ebp - 4]
cmp byte [edx + 0x332], 0
jne 0x496ae9
mov edx, dword [ebp - 4]
cmp word [edx + 0x2e0], 0xc7
jge 0x496ae9
mov edx, dword [ebp - 4]
cmp dword [edx + 0x310], 0
je 0x496a4a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
test eax, eax
je 0x496ae9
cmp byte [eax + 0x331], 0
jne 0x496ae9
mov edx, 0x1d4c0
mov eax, dword [ebp - 4]
call fcn.0048d358
mov eax, dword [ebp - 4]
mov byte [eax + 0x330], 1
xor eax, eax
push ebp
push 0x496ae2
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x496a83
push 0
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004971fc
mov eax, dword [ebp - 4]
cmp byte [eax + 0x331], 0
jne 0x496ac2
mov eax, dword [ebp - 4]
cmp byte [eax + 0x332], 0
jne 0x496ac2
mov eax, dword [ebp - 4]
cmp word [eax + 0x2e0], 0xc7
jge 0x496ac2
mov eax, dword [ebp - 4]
cmp word [eax + 0x2e0], 0
je 0x496ac2
mov eax, dword [ebp - 4]
cmp byte [eax + 0x370], 0
jne 0x496a71
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496ae9
mov eax, dword [ebp - 4]
call fcn.0048d3a8
mov eax, dword [ebp - 4]
mov byte [eax + 0x330], 0
ret
mov eax, dword [ebp - 4]
cmp byte [eax + 0x438], 0
jne 0x496b81
mov eax, dword [ebp - 4]
mov bx, word [eax + 0x2e0]
cmp bx, 0x12c
jle 0x496b61
cmp bx, 0x258
jge 0x496b61
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x33c]
call fcn.004088d0
mov edx, dword [ebp - 0x28]
mov eax, 0x496c68
call fcn.0040410c
test eax, eax
jg 0x496b55
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x33c]
call fcn.004088d0
mov edx, dword [ebp - 0x28]
mov eax, 0x496c7c
call fcn.0040410c
test eax, eax
jle 0x496b61
mov eax, dword [ebp - 4]
mov byte [eax + 0x438], 1
jmp 0x496b81
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x2e0]
cmp ax, 0x12c
jle 0x496b81
cmp ax, 0x258
jge 0x496b81
mov eax, dword [ebp - 4]
mov byte [eax + 0x438], 2
cmp byte [ebp - 0x21], 0
jne 0x496ba6
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a2], 0
je 0x496ba6
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3a4]
call dword [ebx + 0x3a0]
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x310]
test esi, esi
je 0x496bc7
mov eax, esi
mov dl, 1
mov ecx, dword [eax]
call dword [ecx - 4]
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x310], edx
cmp byte [ebp - 0x21], 0
je 0x496bee
mov eax, dword [ebp - 4]
cmp word [eax + 0x3c2], 0
je 0x496bee
mov ebx, dword [ebp - 4]
mov cl, 0xf
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3c4]
call dword [ebx + 0x3c0]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496c28
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00403bcc
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00403bcc
ret