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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
push ebx
xor ecx, ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d2cbb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5328dc]
cmp dword [eax], 0
je 0x4d2c88
mov eax, dword [0x5327bc]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x28]
jne 0x4d2c88
push 1
mov eax, dword [ebp - 8]
call fcn.0048530c
call fcn.00423408
push eax
call sub.gdi32.dll_SetBkMode
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4d2b04
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4d293b
cmp eax, dword [esp]
pop edx
pop eax
jb 0x4d294d
jmp 0x4d293f
pop edx
pop eax
jl 0x4d294d
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 4]
inc dword [eax + 0x24]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c], 0xc8
jg 0x4d2981
mov eax, dword [ebp - 8]
call fcn.0048530c
mov edx, 0x4d2cd0
call fcn.00423268
push eax
mov eax, 0xc8
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x1c]
pop edx
mov ecx, edx
cdq
idiv ecx
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
call fcn.0048530c
mov edx, 0x4d2cd0
call fcn.00423268
push eax
mov eax, 0x220
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x1c]
pop edx
mov ecx, edx
cdq
idiv ecx
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
call fcn.0047d784
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.0040471c
cmp dword [ebp - 0x18], 0
je 0x4d2a14
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x28]
call fcn.00404944
cmp eax, dword [ebp - 0x10]
jge 0x4d2a67
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4d2a39
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4d2a57
jmp 0x4d2a3d
pop edx
pop eax
jge 0x4d2a57
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
inc dword [eax + 8]
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0x212
mov eax, dword [ebp - 4]
inc dword [eax + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1c]
mov eax, 0xc8
call fcn.0047e390
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, 5
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00512754
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x14]
cmp eax, dword [edx + 4]
jl 0x4d2abe
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0
jle 0x4d2abe
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x48]
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x4d2ae7
cmp eax, 0x64
jbe 0x4d2c7b
jmp 0x4d2aed
jle 0x4d2c7b
mov eax, dword [ebp - 4]
sub dword [eax + 0x1c], 2
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
jmp 0x4d2c7b
mov eax, dword [0x5328c8]
cmp byte [eax + 0xffe], 0
je 0x4d2b38
push 0xff
push 0
mov eax, dword [0x532cdc]
mov eax, dword [eax]
push eax
mov ecx, 0xa
mov edx, 0x32
mov eax, dword [ebp - 8]
call fcn.00512754
jmp 0x4d2c7b
mov eax, dword [0x5328c8]
cmp byte [eax + 0xc1], 1
jne 0x4d2c7b
mov eax, dword [0x5329a4]
cmp dword [eax], 0
jne 0x4d2b63
lea eax, [ebp - 0x1c]
mov edx, 0x4d2cdc
call fcn.0040471c
jmp 0x4d2bae
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [0x5329a4]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
mov eax, dword [0x5329a4]
mov eax, dword [eax]
movzx eax, word [eax + 0x66]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
mov eax, dword [0x5329a4]
mov eax, dword [eax]
movzx eax, word [eax + 0x6a]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
lea edx, [ebp - 0x40]
mov ecx, 2
mov eax, 0x4d2ce8
call fcn.00409cf4
lea eax, [ebp - 0x18]
push eax
call fcn.0040aa6c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x84]
call fcn.0040b6d4
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0xb
mov eax, dword [0x5328dc]
mov eax, dword [eax]
mov eax, dword [eax + 0x6e]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0
mov eax, dword [0x5328dc]
mov eax, dword [eax]
movzx eax, word [eax + 0x76]
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0
mov eax, dword [0x5328dc]
mov eax, dword [eax]
movzx eax, word [eax + 0x78]
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0
mov eax, dword [0x532de4]
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0
mov eax, dword [0x532d20]
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0
mov eax, dword [0x5328dc]
mov eax, dword [eax]
mov eax, dword [eax + 0x84]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0xb
lea edx, [ebp - 0x80]
mov ecx, 7
mov eax, 0x4d2cfc
call fcn.00409cf4
mov eax, dword [0x5328c8]
mov eax, dword [eax + 0xfac]
push eax
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, 5
mov edx, 0xa
mov eax, dword [ebp - 8]
call fcn.00512754
mov eax, dword [ebp - 8]
call fcn.0048530c
call fcn.00484378
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2cc2
lea eax, [ebp - 0x84]
call fcn.00404684
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004046a8
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004046a8
ret