Function at 0x49597c
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 0x495985
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 0x4962a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x1424], 0
mov byte [ebp - 0x21], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x1404], bl
mov eax, dword [ebp - 4]
mov byte [eax + 0x329], 0
mov eax, dword [ebp - 4]
call fcn.0048b820
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1360], 0
je 0x49627b
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00494228
xor eax, eax
push ebp
push 0x495a2b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x20
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x40f610]
call fcn.00413c48
mov dword [ebp - 0x20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x495a6b
mov eax, dword [ebp - 0x20]
call fcn.004136ac
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xf8], eax
mov dword [ecx + 0xfc], edx
lea eax, [ebp - 0x20]
call fcn.00455570
xor edx, edx
push ebp
push 0x496271
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x489a20]
call fcn.00489dd8
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 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 + 0x2c8]
mov eax, esi
call fcn.0048e39c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x142c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov dword [eax + 0xc8], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x30], edx
mov dword [eax + 0x2c], 0x4974ac
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 dl, byte [edx + 0x314]
mov byte [eax + 0x314], dl
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x31c]
mov dword [eax + 0x31c], edx
mov byte [eax + 0x310], 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x13f8], 0
mov dword [eax + 0x13fc], 0
cmp bl, 1
je 0x495b7c
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe0], 0xa
je 0x495b7c
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe0], 0x10
je 0x495b7c
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe0], 0xb
je 0x495b7c
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe0], 0xd
jne 0x495be8
mov bl, 1
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004969ec
test al, al
je 0x495bae
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1360], 0
je 0x495bae
mov eax, dword [ebp - 0x14]
mov edx, dword [0x54d6c4]
mov edx, dword [edx]
call fcn.00403f34
jne 0x495be8
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x2d8]
cmp ax, 0xe2
je 0x495bc3
test ax, ax
jne 0x495be6
mov eax, dword [ebp - 4]
mov byte [eax + 0x1424], 1
mov ecx, dword [0x54d6c4]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407d28]
call fcn.0040ba6c
call fcn.0040361c
xor ebx, ebx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1360], 0
jne 0x495c08
mov eax, dword [ebp - 4]
mov byte [eax + 0x1424], 2
call fcn.004036bc
jmp 0x49627b
test bl, bl
je 0x495c9b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1380]
call fcn.004088e0
mov edx, dword [ebp - 0x28]
mov eax, 0x4962d8
call fcn.0040410c
test eax, eax
jle 0x495c4f
push ebp
call fcn.0049576c
pop ecx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1424], 2
jne 0x495c4f
call fcn.004036bc
jmp 0x49627b
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00494440
test al, al
jne 0x495d32
mov eax, dword [ebp - 4]
mov byte [eax + 0x1424], 2
mov eax, dword [ebp - 4]
mov byte [eax + 0x329], 1
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x49161c]
call fcn.0040ba6c
call fcn.0040361c
call fcn.004036bc
jmp 0x49627b
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x140c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1408]
mov eax, dword [ebp - 4]
call fcn.004991b0
mov edx, dword [ebp - 4]
mov esi, dword [edx + 0x308]
mov dword [esi + 0xf0], eax
mov eax, esi
mov dl, 1
call fcn.0048c8b8
mov eax, dword [ebp - 4]
cmp word [eax + 0x11a], 0
je 0x495cfe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x118]
mov dword [eax + 0x118], ecx
mov ecx, dword [edx + 0x11c]
mov dword [eax + 0x11c], ecx
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0048f344
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.0048e4e0
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.00403e2c
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00496e50
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1360], 0
jne 0x495d52
mov eax, dword [ebp - 4]
mov byte [eax + 0x1424], 2
call fcn.004036bc
jmp 0x49627b
mov dl, 0xf
mov eax, dword [ebp - 4]
call fcn.004975bc
test al, al
je 0x495d6a
call fcn.004036bc
jmp 0x49627b
mov eax, dword [ebp - 4]
cmp word [eax + 0x11a], 0
je 0x495d9b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x118]
mov dword [eax + 0x118], ecx
mov ecx, dword [edx + 0x11c]
mov dword [eax + 0x11c], ecx
test bl, bl
je 0x495dc1
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1380]
call fcn.004088e0
mov edx, dword [ebp - 0x28]
mov eax, 0x4962d8
call fcn.0040410c
test eax, eax
jne 0x495dde
push ebp
call fcn.0049576c
pop ecx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1424], 2
jne 0x495dde
call fcn.004036bc
jmp 0x49627b
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x2d8]
cmp ax, 0x12c
jle 0x495e40
cmp ax, 0x258
jge 0x495e40
mov eax, dword [ebp - 4]
mov byte [eax + 0x1424], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x13be], 0
jne 0x495e15
call fcn.004036bc
jmp 0x49627b
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 + 0x13c0]
call dword [esi + 0x13bc]
cmp byte [ebp - 0x22], 0
jne 0x495e40
call fcn.004036bc
jmp 0x49627b
mov eax, dword [ebp - 4]
test byte [eax + 0x2e9], 2
jne 0x495e5a
test bl, bl
jne 0x495e5a
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00497b70
mov eax, dword [ebp - 4]
cmp word [eax + 0x138e], 0
je 0x495e79
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1390]
call dword [ebx + 0x138c]
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x32c], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x329], 0
jne 0x495eb6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32a], 0
jne 0x495eb6
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov edx, dword [ebp - 0xc]
call fcn.0048bfd8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
xor ecx, ecx
xor edx, edx
call fcn.0048dce0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x329], 0
jne 0x496007
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32a], 0
jne 0x496007
mov eax, dword [ebp - 4]
cmp word [eax + 0x2d8], 0xc7
jge 0x496007
mov edx, 0x1d4c0
mov eax, dword [ebp - 4]
call fcn.0048cbc4
mov eax, dword [ebp - 4]
mov byte [eax + 0x328], 1
xor edx, edx
push ebp
push 0x496000
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x334]
call fcn.00403c40
jmp 0x495faf
push 0
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0049687c
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x334]
call fcn.00403f34
je 0x495faf
mov eax, dword [ebp - 0x1c]
mov edx, dword [0x54d6c4]
mov edx, dword [edx]
call fcn.00403f34
je 0x495faf
lea eax, [ebp - 0x1c]
mov edx, dword [0x54d6c4]
mov edx, dword [edx]
call fcn.00403c40
mov eax, dword [ebp - 4]
cmp word [eax + 0x1396], 0
je 0x495f98
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1398]
call dword [ebx + 0x1394]
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 ax, word [eax + 0x2d8]
cmp ax, 0xc7
jge 0x495fe0
test ax, ax
je 0x495fe0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1360], 0
je 0x495fe0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32a], 0
je 0x495f32
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49603d
mov eax, dword [ebp - 4]
call fcn.0048cc14
mov eax, dword [ebp - 4]
mov byte [eax + 0x328], 0
ret
mov eax, dword [ebp - 4]
cmp word [eax + 0x1396], 0
je 0x496026
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1398]
call dword [ebx + 0x1394]
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 byte [ebp - 0x21], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49627b
cmp byte [ebp - 0x21], 0
jne 0x496066
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
xor ecx, ecx
xor edx, edx
call fcn.0048dce0
cmp byte [ebp - 0x21], 0
jne 0x49616b
mov edx, dword [ebp - 4]
cmp byte [edx + 0x329], 0
jne 0x49616b
mov edx, dword [ebp - 4]
cmp byte [edx + 0x32a], 0
jne 0x49616b
mov edx, dword [ebp - 4]
cmp word [edx + 0x2d8], 0xc7
jge 0x49616b
mov edx, dword [ebp - 4]
cmp dword [edx + 0x308], 0
je 0x4960cc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
test eax, eax
je 0x49616b
cmp byte [eax + 0x329], 0
jne 0x49616b
mov edx, 0x1d4c0
mov eax, dword [ebp - 4]
call fcn.0048cbc4
mov eax, dword [ebp - 4]
mov byte [eax + 0x328], 1
xor eax, eax
push ebp
push 0x496164
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x496105
push 0
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0049687c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x329], 0
jne 0x496144
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32a], 0
jne 0x496144
mov eax, dword [ebp - 4]
cmp word [eax + 0x2d8], 0xc7
jge 0x496144
mov eax, dword [ebp - 4]
cmp word [eax + 0x2d8], 0
je 0x496144
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1360], 0
jne 0x4960f3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49616b
mov eax, dword [ebp - 4]
call fcn.0048cc14
mov eax, dword [ebp - 4]
mov byte [eax + 0x328], 0
ret
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1424], 0
jne 0x496203
mov eax, dword [ebp - 4]
mov bx, word [eax + 0x2d8]
cmp bx, 0x12c
jle 0x4961e3
cmp bx, 0x258
jge 0x4961e3
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x334]
call fcn.004088e0
mov edx, dword [ebp - 0x28]
mov eax, 0x4962e8
call fcn.0040410c
test eax, eax
jg 0x4961d7
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x334]
call fcn.004088e0
mov edx, dword [ebp - 0x28]
mov eax, 0x4962fc
call fcn.0040410c
test eax, eax
jle 0x4961e3
mov eax, dword [ebp - 4]
mov byte [eax + 0x1424], 1
jmp 0x496203
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x2d8]
cmp ax, 0x12c
jle 0x496203
cmp ax, 0x258
jge 0x496203
mov eax, dword [ebp - 4]
mov byte [eax + 0x1424], 2
cmp byte [ebp - 0x21], 0
jne 0x496228
mov eax, dword [ebp - 4]
cmp word [eax + 0x1396], 0
je 0x496228
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1398]
call dword [ebx + 0x1394]
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x308]
test esi, esi
je 0x496249
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
cmp byte [ebp - 0x21], 0
je 0x496270
mov eax, dword [ebp - 4]
cmp word [eax + 0x13b6], 0
je 0x496270
mov ebx, dword [ebp - 4]
mov cl, 0xf
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x13b8]
call dword [ebx + 0x13b4]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4962aa
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00403bcc
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00403bcc
ret