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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
call fcn.00403fd8
mov eax, dword [ebp - 0xc]
call fcn.00403fd8
xor eax, eax
push ebp
push 0x495922
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x430], 0
mov eax, dword [ebp - 4]
mov dl, byte [ebp + 0x14]
mov byte [eax + 0x410], dl
mov eax, dword [ebp - 4]
mov byte [eax + 0x370], 0
mov byte [ebp - 0x19], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x329], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
call fcn.0048b978
mov eax, dword [ebp - 4]
cmp byte [eax + 0x368], 0
je 0x4958fa
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004943ec
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x308]
test edi, edi
je 0x49500a
mov eax, edi
mov dl, 1
mov ecx, dword [eax]
call dword [ecx - 4]
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x308], edx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x432], 2
jne 0x495058
cmp byte [esi], 0
je 0x495058
mov eax, dword [ebp - 4]
cmp byte [eax + 0x368], 0
je 0x495058
mov ecx, 0x49593c
mov dl, 0x14
mov eax, dword [ebp - 4]
call fcn.0048e0fc
mov eax, dword [ebp - 4]
mov dword [eax + 0x400], 0
mov dword [eax + 0x404], 0
mov eax, dword [ebp - 0xc]
call fcn.004092bc
mov byte [esi], 0
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x489a94]
call fcn.00489e4c
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c8]
mov eax, ebx
call fcn.0048e538
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov byte [eax + 0x310], 2
mov byte [eax + 0x304], 0
mov edx, dword [ebp - 4]
mov dl, byte [edx + 0x313]
mov byte [eax + 0x313], dl
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x318]
mov dword [eax + 0x318], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x438]
mov dword [eax + 0xc8], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x30], edx
mov dword [eax + 0x2c], 0x49771c
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x8c]
mov dword [eax + 0x8c], ecx
mov ecx, dword [edx + 0x90]
mov dword [eax + 0x90], ecx
mov edx, dword [ebp - 4]
mov dword [eax + 0x28], edx
mov dword [eax + 0x24], 0x497860
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [eax + 0xf8], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0xfc], edx
xor edx, edx
push ebp
push 0x4958f0
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
call fcn.004091c4
test al, al
jne 0x495146
mov eax, dword [ebp - 0xc]
call fcn.004574c4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
call fcn.004092d4
xor eax, eax
push ebp
push 0x495172
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x22
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x40f600]
call fcn.00413c38
mov dword [ebp - 0x20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4951b2
cmp byte [ebp + 0x14], 1
je 0x4951e8
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe0], 0xa
je 0x4951e8
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe0], 0x10
je 0x4951e8
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe0], 0xb
je 0x4951e8
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe0], 0xd
jne 0x495220
mov byte [ebp + 0x14], 1
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00496c38
test al, al
je 0x49521c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x368], 0
je 0x49521c
mov eax, dword [ebp - 0x18]
mov edx, dword [0x54e6e4]
mov edx, dword [edx]
call fcn.00403f34
jne 0x495220
mov byte [ebp + 0x14], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x368], 0
jne 0x495240
mov eax, dword [ebp - 4]
mov byte [eax + 0x430], 2
call fcn.004036bc
jmp 0x4958fa
cmp byte [ebp + 0x14], 0
je 0x495280
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0049467c
test al, al
jne 0x4952f2
mov eax, dword [ebp - 4]
mov byte [eax + 0x430], 2
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x4917bc]
call fcn.0040ba5c
call fcn.0040361c
jmp 0x4952f2
mov eax, dword [0x54e5f4]
mov eax, dword [eax]
call fcn.0043b280
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x418]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x414]
mov eax, dword [ebp - 4]
call fcn.00499518
mov edx, dword [ebp - 4]
mov ebx, dword [edx + 0x308]
mov dword [ebx + 0xf0], eax
mov eax, ebx
mov dl, 1
call fcn.0048ca10
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0048f4e4
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.0048e67c
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.00403e2c
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0049709c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x329], 0
jne 0x49530a
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32a], 0
je 0x495314
call fcn.004036bc
jmp 0x4958fa
mov dl, 0xe
mov eax, dword [ebp - 4]
call fcn.00497808
test al, al
je 0x49532c
call fcn.004036bc
jmp 0x4958fa
mov eax, dword [ebp - 4]
cmp word [eax + 0x112], 0
je 0x49535d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x110]
mov dword [eax + 0x110], ecx
mov ecx, dword [edx + 0x114]
mov dword [eax + 0x114], ecx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x368], 0
jne 0x49537d
mov eax, dword [ebp - 4]
mov byte [eax + 0x430], 2
call fcn.004036bc
jmp 0x4958fa
cmp byte [esi], 0
je 0x4953d7
cmp dword [ebp - 0x20], 0
je 0x4953d7
cmp byte [esi], 0
je 0x4953c0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x41c], 0
je 0x4953c0
mov eax, dword [ebp - 0x20]
call fcn.0041369c
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x420]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov eax, dword [ebp - 0x20]
call fcn.004136ec
mov eax, dword [ebp - 0x20]
call fcn.0041369c
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x400], eax
mov dword [ecx + 0x404], edx
cmp byte [esi], 0
je 0x4954f7
mov eax, dword [ebp - 4]
cmp dword [eax + 0x404], 0
jne 0x4953f3
cmp dword [eax + 0x400], 0
je 0x4954f7
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x42a]
mov byte [ebp - 0x21], al
mov eax, dword [ebp - 4]
mov byte [eax + 0x42a], 0
xor eax, eax
push ebp
push 0x4954f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push dword [eax + 0x404]
push dword [eax + 0x400]
lea eax, [ebp - 0x2c]
call fcn.00408e6c
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, 0x495980
call fcn.00403e70
mov edx, dword [ebp - 0x28]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.00493b54
mov eax, dword [ebp - 4]
cmp word [eax + 0x2d8], 0x1a5
jne 0x495478
mov eax, dword [ebp - 4]
mov byte [eax + 0x430], 2
call fcn.004036bc
call fcn.004036bc
jmp 0x4958fa
mov eax, dword [ebp - 4]
cmp word [eax + 0x2d8], 0x15e
je 0x4954c4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x368], 0
je 0x4954c4
mov ecx, 0x49593c
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.0048e0fc
mov eax, dword [ebp - 4]
mov dword [eax + 0x400], 0
mov dword [eax + 0x404], 0
push 0
push 0
mov eax, dword [ebp - 0x20]
call fcn.004136ec
push 0
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00496ac8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49550e
mov eax, dword [ebp - 4]
mov dl, byte [ebp - 0x21]
mov byte [eax + 0x42a], dl
ret
mov eax, dword [ebp - 4]
mov dword [eax + 0x400], 0
mov dword [eax + 0x404], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x329], 0
jne 0x495526
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32a], 0
je 0x495530
call fcn.004036bc
jmp 0x4958fa
mov eax, dword [ebp - 4]
cmp byte [eax + 0x368], 0
jne 0x495550
mov eax, dword [ebp - 4]
mov byte [eax + 0x430], 2
call fcn.004036bc
jmp 0x4958fa
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov dword [eax + 0x2e0], edx
mov dword [eax + 0x2dc], 0x49446c
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 8]
mov edx, 0x495990
call fcn.00403e70
mov edx, dword [ebp - 0x28]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.00493b54
mov dl, 0xe
mov eax, dword [ebp - 4]
call fcn.00497808
test al, al
je 0x49559b
call fcn.004036bc
jmp 0x4958fa
mov eax, dword [ebp - 4]
cmp byte [eax + 0x368], 0
jne 0x4955b1
call fcn.004036bc
jmp 0x4958fa
mov eax, dword [ebp - 4]
test byte [eax + 0x2e9], 2
jne 0x4955cd
cmp byte [ebp + 0x14], 0
jne 0x4955cd
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00497dbc
mov eax, dword [ebp - 4]
cmp word [eax + 0x392], 0
je 0x4955ec
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x394]
call dword [ebx + 0x390]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0xf8]
mov dword [eax + 0xf8], ecx
mov ecx, dword [edx + 0xfc]
mov dword [eax + 0xfc], ecx
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x32c], eax
cmp dword [ebp - 0x20], 0
je 0x49562c
lea eax, [ebp - 0x20]
call fcn.00455580
mov eax, dword [ebp - 4]
cmp byte [eax + 0x329], 0
jne 0x495655
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32a], 0
jne 0x495655
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov edx, dword [ebp - 0xc]
call fcn.0048c560
mov eax, dword [ebp - 4]
cmp word [eax + 0x39a], 0
je 0x495674
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]
sub eax, dword [edx + 0x32c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x32c], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x308]
mov ecx, dword [edx + 0x108]
mov dword [eax + 0xf8], ecx
mov ecx, dword [edx + 0x10c]
mov dword [eax + 0xfc], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
xor ecx, ecx
xor edx, edx
call fcn.0048de54
mov eax, dword [ebp - 4]
cmp byte [eax + 0x329], 0
jne 0x4956f3
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32a], 0
jne 0x4956f3
mov eax, dword [ebp - 4]
cmp word [eax + 0x2d8], 0xc7
jge 0x4956f3
mov dx, 5
mov eax, dword [ebp - 4]
call fcn.0048e628
mov eax, dword [ebp - 4]
cmp byte [eax + 0x329], 0
jne 0x4957a6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32a], 0
jne 0x4957a6
mov eax, dword [ebp - 4]
cmp word [eax + 0x2d8], 0xc7
jge 0x4957a6
mov edx, 0x2710
mov eax, dword [ebp - 4]
call fcn.0048cd30
mov eax, dword [ebp - 4]
mov byte [eax + 0x328], 1
xor edx, edx
push ebp
push 0x49579f
push dword fs:[edx]
mov dword fs:[edx], esp
jmp 0x49575e
push 0
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00496ac8
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x2d8]
cmp ax, 0xc7
jge 0x49577f
test ax, ax
je 0x49577f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x368], 0
jne 0x49574c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4957a6
mov eax, dword [ebp - 4]
call fcn.0048cd80
mov eax, dword [ebp - 4]
mov byte [eax + 0x328], 0
ret
mov byte [ebp - 0x19], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4958fa
cmp dword [ebp - 0x20], 0
je 0x4957c5
lea eax, [ebp - 0x20]
call fcn.00455580
mov eax, dword [ebp - 4]
cmp byte [eax + 0x329], 0
je 0x4957e3
push 0
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00496ac8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x430], 0
jne 0x495835
mov eax, dword [ebp - 4]
cmp word [eax + 0x2d8], 0x12c
jle 0x495835
mov eax, dword [ebp - 4]
cmp word [eax + 0x2d8], 0x258
jge 0x495835
mov eax, dword [ebp - 0xc]
call fcn.004574f8
cmp edx, dword [ebp + 0xc]
jne 0x49582b
cmp eax, dword [ebp + 8]
jne 0x49582b
mov eax, dword [ebp - 4]
mov word [eax + 0x2d8], 0xc8
jmp 0x495835
mov eax, dword [ebp - 4]
mov byte [eax + 0x430], 2
cmp byte [ebp - 0x19], 0
jne 0x49585a
mov eax, dword [ebp - 4]
cmp word [eax + 0x39a], 0
je 0x49585a
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x39c]
call dword [ebx + 0x398]
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x308]
test esi, esi
je 0x49587b
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 + 0x308], edx
mov eax, dword [ebp - 4]
cmp word [eax + 0x2d8], 0x96
jne 0x4958c8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x368], 0
je 0x4958c8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x329], 0
jne 0x4958c8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32a], 0
jne 0x4958c8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x370], 0
jne 0x4958c8
mov cl, 1
mov edx, 0x4959a0
mov eax, dword [ebp - 4]
call fcn.0049694c
cmp byte [ebp - 0x19], 0
je 0x4958ef
mov eax, dword [ebp - 4]
cmp word [eax + 0x3ba], 0
je 0x4958ef
mov ebx, dword [ebp - 4]
mov cl, 0xe
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3bc]
call dword [ebx + 0x3b8]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495929
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00403bcc
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.00403bcc
ret