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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4b8bd4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x218], ebx
push edi
mov dword [ebp - 0x220], esi
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x4a170a
test byte [eax + 0x1c], 2
je 0x4a170a
push dword [eax + 0x14]
mov edx, 0x410ec0
push dword [eax + 0x10]
push 0x1c
pop ecx
call fcn.00416054
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebx]
lea ecx, [ebp - 0x224]
xor ebx, ebx
mov byte [ebp - 0x219], bl
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x238], eax
call fcn.004174d6
mov edi, dword [esi + 4]
push 0x13
pop eax
mov word [ebp - 0x24c], ax
lea eax, [ebp - 0x214]
push eax
mov dword [ebp - 0x244], 4
lea eax, [ebp - 0x24c]
mov esi, dword [edi]
push 0x100
push ebx
push eax
mov ecx, dword [esi + 4]
call dword [0x4bb544]
mov ecx, edi
call dword [esi + 4]
mov ebx, eax
mov dword [ebp - 0x230], ebx
test ebx, ebx
jns 0x4a177e
xor eax, eax
mov word [ebp - 0x214], ax
mov edx, dword [0x4b70c8]
mov edi, 0x4b70c8
cmp edx, edi
je 0x4a17c4
test byte [edx + 0x1c], 0x20
je 0x4a17c4
movzx ecx, byte [edx + 0x19]
xor eax, eax
test ebx, ebx
sets al
dec eax
and eax, 3
add eax, 2
cmp ecx, eax
jb 0x4a17c4
lea eax, [ebp - 0x214]
push eax
push ebx
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x410ec0
push 0x1d
pop ecx
call fcn.0041b4e5
test ebx, ebx
js 0x4a184c
lea ecx, [ebp - 0x214]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4a17d7
sub ecx, edx
lea eax, [ebp - 0x214]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.0041738c
push esi
push 0x2e
lea ecx, [ebp - 0x224]
call fcn.0042aadd
or esi, 0xffffffff
cmp eax, esi
jne 0x4a193c
mov ebx, 0x8000ffff
mov dword [ebp - 0x230], ebx
mov eax, dword [0x4b70c8]
cmp eax, edi
je 0x4a184c
test byte [eax + 0x1c], 0x20
je 0x4a184c
cmp byte [eax + 0x19], 4
jb 0x4a184c
lea ecx, [ebp - 0x214]
mov edx, 0x410ec0
push ecx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1e
pop ecx
call fcn.00416072
mov edi, dword [ebp - 0x224]
mov esi, dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test ebx, ebx
js 0x4a1c7f
mov ecx, dword [0x4ba570]
mov ebx, dword [ebp - 0x220]
test ecx, ecx
je 0x4a1c46
mov eax, ecx
mov ecx, dword [ecx]
mov dword [ebp - 0x228], ecx
mov ecx, dword [eax + 8]
mov eax, dword [ebx]
push ecx
push esi
mov dword [ebp - 0x234], ecx
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x4bb544]
mov ecx, ebx
call esi
mov esi, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x22c], eax
test eax, eax
jns 0x4a1872
mov ebx, dword [ebx + 0x10]
mov eax, dword [ebp - 0x234]
mov edx, dword [ebx]
push dword [eax + 4]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x4bb544]
mov ecx, ebx
call esi
test al, al
jne 0x4a1c0a
mov eax, dword [0x4b70c8]
mov esi, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x228]
mov ebx, dword [ebp - 0x220]
cmp eax, 0x4b70c8
je 0x4a1872
test byte [eax + 0x1c], 0x20
je 0x4a1872
cmp byte [eax + 0x19], 4
jb 0x4a1872
mov ecx, dword [ebp - 0x22c]
mov edx, 0x410ec0
push ecx
push dword [ebp - 0x234]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x23
pop ecx
call fcn.00417822
mov ecx, dword [ebp - 0x228]
jmp 0x4a1872
inc eax
lea ecx, [ebp - 0x224]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00416d8f
push eax
lea ecx, [ebp - 0x224]
call fcn.0041715f
lea ecx, [ebp - 0x22c]
call fcn.00417441
push 0x40ee4c
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
call fcn.00435ae6
push eax
lea ecx, [ebp - 0x224]
call fcn.0041715f
lea ecx, [ebp - 0x22c]
call fcn.00417441
mov eax, dword [0x4b70c8]
cmp eax, edi
mov edi, dword [ebp - 0x224]
je 0x4a19c9
test byte [eax + 0x1c], 0x20
je 0x4a19c9
cmp byte [eax + 0x19], 4
jb 0x4a19c9
push edi
push dword [eax + 0x14]
mov edx, 0x410ec0
push dword [eax + 0x10]
push 0x1f
pop ecx
call fcn.00416072
mov eax, dword [0x4b70c8]
xor ecx, ecx
cmp dword [edi - 0xc], ecx
jne 0x4a1a14
mov ebx, 0x8000ffff
mov dword [ebp - 0x230], ebx
cmp eax, 0x4b70c8
je 0x4a1852
test byte [eax + 0x1c], 0x20
je 0x4a1852
cmp byte [eax + 0x19], 4
jb 0x4a1852
lea ecx, [ebp - 0x214]
mov edx, 0x410ec0
push ecx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x20
pop ecx
call fcn.00416072
test ebx, ebx
js 0x4a1852
push esi
push 0x410d5c
push esi
push edi
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
push esi
push 0x410d68
push esi
push edi
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x4a1a4c
mov byte [ebp - 0x219], 1
push esi
push 0x4086e0
push esi
lea eax, [ebp - 0x214]
push eax
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x4a1a85
mov ecx, dword [ebp - 0x220]
push 0x2d
mov ebx, dword [ecx + 0x10]
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4bb544]
mov ecx, ebx
call esi
lea ecx, [ebp - 0x228]
call fcn.004174d6
lea ecx, [ebp - 0x214]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4a1a9b
sub ecx, edx
lea eax, [ebp - 0x214]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.0041738c
lea ecx, [ebp - 0x228]
call fcn.00435b1a
cmp byte [ebp - 0x219], 0
jne 0x4a1b20
mov eax, dword [ebp - 0x220]
cmp byte [eax + 0xc], 0
jne 0x4a1b58
mov esi, dword [ebp - 0x228]
mov ebx, dword [esi - 0xc]
test ebx, ebx
js 0x4a1b58
mov edx, 0x410d7c
mov ecx, esi
call fcn.00424112
test eax, eax
je 0x4a1b03
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x4a1b20
test ebx, ebx
js 0x4a1b58
mov edx, 0x410d88
mov ecx, esi
call fcn.00424112
test eax, eax
je 0x4a1b58
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x4a1b58
mov eax, dword [ebp - 0x220]
push 0x47
mov ebx, dword [eax + 0x10]
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4bb544]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x220]
push 0x48
mov ebx, dword [eax + 0x10]
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4bb544]
mov ecx, ebx
call esi
lea ecx, [ebp - 0x228]
call fcn.00417441
mov ebx, dword [ebp - 0x218]
mov ecx, ebx
push 1
push 0x4082d0
call fcn.00416cb5
push dword [edi - 0xc]
mov ecx, ebx
push edi
call fcn.00416cb5
mov ecx, dword [ebp - 0x220]
push 0x4ba558
push ebx
mov eax, dword [ecx]
mov esi, dword [eax + 0x28]
mov ecx, esi
call dword [0x4bb544]
mov ecx, dword [ebp - 0x220]
call esi
mov ebx, eax
mov dword [ebp - 0x230], ebx
test ebx, ebx
jns 0x4a1bf1
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x4a1852
test byte [eax + 0x1c], 0x20
je 0x4a1852
cmp byte [eax + 0x19], 4
jb 0x4a1852
push ebx
push 0x4ba558
push dword [eax + 0x14]
mov edx, 0x410ec0
push dword [eax + 0x10]
push 0x21
pop ecx
call fcn.00417822
jmp 0x4a1852
mov esi, dword [ebp - 0x218]
mov ecx, esi
push 1
push 0x4070ac
call fcn.00416cb5
jmp 0x4a1858
mov ecx, dword [ebp - 0x22c]
mov ebx, ecx
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x4a1c4c
test byte [eax + 0x1c], 0x20
je 0x4a1c4c
cmp byte [eax + 0x19], 4
jb 0x4a1c4c
push ecx
push dword [ebp - 0x234]
mov edx, 0x410ec0
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x22
pop ecx
call fcn.00417822
jmp 0x4a1c4c
mov ebx, dword [ebp - 0x230]
mov esi, dword [ebp - 0x218]
test ebx, ebx
js 0x4a1c85
push 2
push 0x408a3c
mov ecx, esi
call fcn.00416cb5
push dword [edi - 0xc]
mov ecx, esi
push edi
call fcn.00416cb5
push 1
push 0x4070ac
mov ecx, esi
call fcn.00416cb5
jmp 0x4a1c85
mov esi, dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 0x238]
mov ecx, esi
push ebx
call fcn.004a1cfe
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x4a1cd5
test byte [eax + 0x1c], 2
je 0x4a1cd5
cmp byte [eax + 0x19], 5
jb 0x4a1cd5
mov ecx, 0x410d94
test ebx, ebx
jns 0x4a1cbf
mov ecx, 0x410da8
push dword [esi]
mov edx, 0x410ec0
push ecx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x24
pop ecx
call fcn.0041b573
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x224]
call fcn.00417441
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8f70
leave
ret 4