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

Disassembly:
sub esp, 0x2d4
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2e8]
mov eax, dword [esi + 8]
mov ebp, dword [esi + 0xa0]
test ebp, ebp
mov dword [esp + 0x238], eax
mov dword [esp + 0x188], eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x23c], eax
mov dword [esp + 0x18c], eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x190], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x240], eax
mov dword [esp + 0x194], eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x248], eax
mov dword [esp + 0x198], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24c], eax
mov dword [esp + 0x19c], eax
mov dword [esp + 0xec], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x34]
push edi
mov dword [esp + 0x268], eax
mov dword [esp + 0x1b8], eax
mov dword [esp + 0x108], eax
mov dword [esp + 0x58], eax
jne 0x41388c
mov ebp, dword [esp + 0x2e8]
push ebp
call dword [sym.imp.user32.dll_GetDC]
mov ebx, eax
push ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
mov edi, eax
mov eax, dword [esi + 0xa4]
push eax
push edi
mov dword [esp + 0x20], edi
call dword [sym.imp.gdi32.dll_SelectObject]
mov ecx, dword [esp + 0x2f4]
mov dword [esi + 0xa4], eax
lea eax, [ecx - 0x65]
cmp eax, 0xa
ja case.default.0x4138cd
jmp dword [eax*4 + 0x414120]
push ebp
call fcn.004153d0
mov ecx, dword [esp + 0x2f4]
mov eax, dword [ecx + 0x18]
imul eax, dword [0x466be4]
mov ecx, dword [ecx + 0xa8]
lea edx, [ecx + eax*2]
mov dword [esp + 0x14], ecx
mov ecx, eax
add ecx, edx
push edi
mov dword [esp + 0x184], ecx
mov ecx, dword [esp + 0x18]
lea edx, [ecx + eax]
push ebx
lea eax, [ecx + eax*2]
push ebp
lea ecx, [esp + 0x194]
push ecx
mov dword [esp + 0x240], edx
lea edx, [esp + 0xe8]
mov dword [esp + 0xe0], eax
push edx
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.00414150
jmp 0x413a0a
push ebp
call fcn.004153d0
mov ecx, dword [esp + 0x2f4]
mov eax, dword [ecx + 0x18]
imul eax, dword [0x466be4]
mov ecx, dword [ecx + 0xa8]
lea edx, [ecx + eax*2]
mov dword [esp + 0x14], ecx
mov ecx, eax
add ecx, edx
push edi
mov dword [esp + 0x184], ecx
mov ecx, dword [esp + 0x18]
lea edx, [ecx + eax]
push ebx
lea eax, [ecx + eax*2]
push ebp
lea ecx, [esp + 0x194]
push ecx
mov dword [esp + 0x240], edx
lea edx, [esp + 0xe8]
mov dword [esp + 0xe0], eax
push edx
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.00414390
jmp 0x413a0a
push ebp
call fcn.004153d0
mov ecx, dword [esp + 0x2f4]
mov eax, dword [ecx + 0x18]
imul eax, dword [0x466be4]
mov ecx, dword [ecx + 0xa8]
lea edx, [ecx + eax*2]
mov dword [esp + 0x14], ecx
mov ecx, eax
add ecx, edx
push edi
mov dword [esp + 0x184], ecx
mov ecx, dword [esp + 0x18]
lea edx, [ecx + eax]
push ebx
lea eax, [ecx + eax*2]
push ebp
lea ecx, [esp + 0x194]
push ecx
mov dword [esp + 0x240], edx
lea edx, [esp + 0xe8]
mov dword [esp + 0xe0], eax
push edx
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.004146b0
mov eax, dword [0x466be4]
push 0
push 0
lea ecx, [esp + 0xfc]
push ecx
mov ecx, dword [0x466c48]
push 0
push 0
lea edx, [esp + 0x58]
push edx
push eax
push ecx
push 0
push 0
push esi
call fcn.00413610
add esp, 0x4c
jmp case.0x4138cd.110
push ebp
call fcn.004153d0
mov ecx, dword [esp + 0x2f4]
mov eax, dword [ecx + 0x18]
imul eax, dword [0x466be4]
mov ecx, dword [ecx + 0xa8]
lea edx, [ecx + eax*2]
mov dword [esp + 0x14], ecx
mov ecx, eax
add ecx, edx
mov edx, dword [esp + 0x14]
lea eax, [edx + eax*2]
add esp, 4
mov dword [esp + 0x17c], ecx
mov dword [esp + 0xcc], eax
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 0
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ecx, dword [esp + 0x10]
add eax, 0x28
cmp ecx, eax
mov dword [esp + 0x14], eax
ja 0x413b37
mov edi, dword [esp + 0x20]
mov eax, dword [0x466be4]
cmp edi, eax
jae 0x413ae9
mov eax, dword [0x466c48]
push edi
push 0
lea ecx, [esp + 0xdc]
push ecx
push edi
push 0
lea edx, [esp + 0x38]
push edx
push 1
push eax
push edi
push 0
push esi
call fcn.00413610
mov eax, dword [0x466be4]
add edi, 0x10
add esp, 0x2c
cmp edi, eax
jb 0x413ab6
mov ecx, dword [esp + 0x18]
mov edx, dword [0x466c48]
push 0xcc0020
push 0
push 0
push ecx
mov ecx, dword [0x466c14]
push eax
mov eax, dword [esp + 0x30]
push edx
push 0
push 0
push eax
push ecx
call fcn.00401350
add esp, 0x28
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, dword [esp + 0x14]
jbe 0x413b17
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
jmp 0x413b3c
add dword [esp + 0x10], 0x28
push ebp
call fcn.004153b0
add esp, 4
test eax, eax
jne 0x413b5b
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 0x10
mov dword [esp + 0x20], eax
jb 0x413a90
mov ecx, dword [0x466be4]
push 0
push 0
lea edx, [esp + 0xdc]
push edx
mov edx, dword [0x466c48]
push 0
push 0
lea eax, [esp + 0x38]
push eax
push ecx
push edx
push 0
push 0
push esi
call fcn.00413610
add esp, 0x2c
jmp case.0x4138cd.110
push ebp
call fcn.004153d0
mov ecx, dword [esp + 0x2f4]
mov eax, dword [ecx + 0x18]
imul eax, dword [0x466be4]
mov ecx, dword [ecx + 0xa8]
lea edx, [ecx + eax*2]
mov ebx, eax
add ebx, edx
lea eax, [ecx + eax*2]
add esp, 4
mov dword [esp + 0x17c], ebx
mov dword [esp + 0xcc], eax
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [esp + 0x10], eax
xor ebx, ebx
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ecx, dword [esp + 0x10]
add eax, 0x50
cmp ecx, eax
mov dword [esp + 0x14], eax
ja 0x413ca7
mov eax, dword [0x466be4]
mov edi, 8
cmp eax, edi
jbe 0x413c5e
mov ecx, edi
sub ecx, ebx
lea eax, [ecx - 1]
push eax
push 0
lea edx, [esp + 0xdc]
push edx
mov edx, dword [0x466c48]
push eax
push 0
lea ecx, [esp + 0x38]
push ecx
push 1
push edx
push eax
push 0
push esi
call fcn.00413610
lea eax, [ebx + edi]
push eax
push 0
lea ecx, [esp + 0x108]
push ecx
mov ecx, dword [0x466c48]
push eax
push 0
lea edx, [esp + 0x64]
push edx
push 1
push ecx
push eax
push 0
push esi
call fcn.00413610
mov eax, dword [0x466be4]
add edi, 0x10
add esp, 0x58
cmp edi, eax
jb 0x413bfb
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [0x466c14]
push eax
mov eax, dword [0x466c48]
push eax
push 0
push 0
push ecx
push edx
call fcn.00401350
add esp, 0x28
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, dword [esp + 0x14]
jbe 0x413c8b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
jmp 0x413cac
add dword [esp + 0x10], 0x50
push ebp
call fcn.004153b0
add esp, 4
test eax, eax
jne 0x413cc3
inc ebx
cmp ebx, 8
jb 0x413bd4
mov edx, dword [0x466be4]
push 0
push 0
lea eax, [esp + 0xdc]
push eax
mov eax, dword [0x466c48]
push 0
push 0
lea ecx, [esp + 0x38]
push ecx
push edx
push eax
push 0
push 0
push esi
call fcn.00413610
mov ebx, dword [esp + 0x48]
add esp, 0x2c
jmp case.0x4138cd.110
mov ecx, dword [esi + 0xa8]
mov eax, dword [esp + 0x2f0]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0xa8]
mov eax, dword [eax + 0x18]
imul eax, dword [0x466be4]
lea edx, [ecx + eax*2]
add eax, edx
mov dword [esp + 0x17c], eax
mov eax, dword [esi + 0x18]
imul eax, dword [0x466be4]
test eax, eax
mov dword [esp + 0xcc], ecx
jbe 0x413d4b
mov ecx, dword [esp + 0x14]
mov dl, byte [ecx]
not dl
mov byte [ecx], dl
inc ecx
dec eax
jne 0x413d41
mov edx, dword [0x466be4]
push 0
push 0
lea eax, [esp + 0xdc]
push eax
mov eax, dword [0x466c48]
push 0
push 0
lea ecx, [esp + 0x38]
push ecx
push edx
push eax
push 0
push 0
push esi
call fcn.00413610
add esp, 0x2c
jmp case.0x4138cd.110
mov ecx, dword [esp + 0x2f0]
mov eax, dword [ecx + 0x18]
imul eax, dword [0x466be4]
mov ecx, dword [ecx + 0xa8]
mov dword [esp + 0x10], ecx
lea ecx, [ecx + eax*2]
mov edx, eax
add edx, ecx
mov ecx, dword [esp + 0x10]
push edi
push ebx
mov dword [esp + 0x184], edx
lea edx, [ecx + eax]
lea eax, [ecx + eax*2]
push ebp
lea ecx, [esp + 0x190]
push ecx
mov dword [esp + 0x23c], edx
lea edx, [esp + 0xe4]
mov dword [esp + 0xdc], eax
push edx
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00414920
mov ecx, dword [0x466be4]
mov edx, dword [0x466c48]
push 0
push 0
push 0
push esi
push ecx
push edx
push 0
push 0
lea eax, [esp + 0x1c0]
push eax
push 0
push 0xffffffffffffffff
push 0
call fcn.00404300
mov eax, dword [0x466be4]
add esp, 0x4c
push 0
push 0
lea ecx, [esp + 0xdc]
push ecx
mov ecx, dword [0x466c48]
push 0
push 0
lea edx, [esp + 0x38]
push edx
push eax
push ecx
push 0
push 0
push esi
call fcn.00413610
add esp, 0x2c
jmp case.0x4138cd.110
mov ecx, dword [esp + 0x2f0]
mov eax, dword [ecx + 0x18]
imul eax, dword [0x466be4]
mov ecx, dword [ecx + 0xa8]
lea edx, [ecx + eax*2]
mov dword [esp + 0x10], ecx
mov ecx, eax
add ecx, edx
push edi
mov dword [esp + 0x180], ecx
mov ecx, dword [esp + 0x14]
lea edx, [ecx + eax]
push ebx
lea eax, [ecx + eax*2]
push ebp
lea ecx, [esp + 0x190]
push ecx
mov dword [esp + 0x23c], edx
lea edx, [esp + 0xe4]
mov dword [esp + 0xdc], eax
push edx
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00414d80
mov ecx, dword [0x466be4]
mov edx, dword [0x466c48]
push 0
push 0
push 0
push esi
push ecx
push edx
push 0
push 0
lea eax, [esp + 0x1c0]
push eax
push 0
push 0xffffffffffffffff
push 0
call fcn.00404300
mov eax, dword [0x466be4]
add esp, 0x4c
push 0
push 0
lea ecx, [esp + 0xdc]
push ecx
mov ecx, dword [0x466c48]
push 0
push 0
lea edx, [esp + 0x38]
push edx
push eax
push ecx
push 0
push 0
push esi
call fcn.00413610
add esp, 0x2c
jmp case.0x4138cd.110
mov ecx, dword [esp + 0x2f0]
mov eax, dword [ecx + 0x18]
imul eax, dword [0x466be4]
mov ecx, dword [ecx + 0xa8]
lea edx, [ecx + eax*2]
mov dword [esp + 0x10], ecx
mov ecx, eax
add ecx, edx
push edi
mov dword [esp + 0x180], ecx
mov ecx, dword [esp + 0x14]
lea edx, [ecx + eax]
push ebx
lea eax, [ecx + eax*2]
push ebp
lea ecx, [esp + 0x190]
push ecx
mov dword [esp + 0x23c], edx
lea edx, [esp + 0xe4]
mov dword [esp + 0xdc], eax
push edx
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00415040
mov ecx, dword [0x466be4]
mov edx, dword [0x466c48]
push 0
push 0
push 0
push esi
push ecx
push edx
push 0
push 0
lea eax, [esp + 0x1c0]
push eax
push 0
push 0xffffffffffffffff
push 0
call fcn.00404300
mov eax, dword [0x466be4]
add esp, 0x4c
push 0
push 0
lea ecx, [esp + 0xdc]
push ecx
mov ecx, dword [0x466c48]
push 0
push 0
lea edx, [esp + 0x38]
push edx
push eax
push ecx
push 0
push 0
push esi
call fcn.00413610
add esp, 0x2c
jmp case.0x4138cd.110
mov ecx, dword [esp + 0x2f0]
mov eax, dword [ecx + 0x18]
imul eax, dword [0x466be4]
mov ecx, dword [ecx + 0xa8]
push edi
lea edx, [ecx + eax]
push ebx
lea eax, [ecx + eax*2]
push ebp
mov dword [esp + 0xd8], ecx
lea ecx, [esp + 0x190]
push ecx
mov dword [esp + 0x23c], edx
lea edx, [esp + 0x244]
mov dword [esp + 0x2ec], eax
push edx
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00414bb0
mov ecx, dword [0x466be4]
mov edx, dword [0x466c48]
push 0
push 0
push 0
push esi
push ecx
push edx
push 0
push 0
lea eax, [esp + 0x60]
push eax
push 0
push 0xffffffffffffffff
push 0
call fcn.00404300
add esp, 0x4c
jmp case.0x4138cd.110
mov ecx, dword [esp + 0x2f0]
mov edx, dword [ecx + 0xa8]
mov eax, dword [0x466be4]
mov ecx, dword [0x466c48]
push 0
push 0
push 0
push esi
push eax
push ecx
push 0
push 0
mov dword [esp + 0xec], edx
lea edx, [esp + 0x44]
push edx
push 0
push 0xffffffffffffffff
push 0
call fcn.00404300
add esp, 0x30
cmp dword [esp + 0x2f4], 0x6d
je 0x4140bb
mov edx, dword [0x466be4]
push 0
push 0
lea eax, [esp + 0xdc]
push eax
mov eax, dword [0x466c48]
push 0
push 0
lea ecx, [esp + 0x38]
push ecx
push edx
push eax
push 0
push 0
push esi
call fcn.00413610
add esp, 0x2c
mov ecx, dword [0x466be4]
mov edx, dword [0x466c48]
mov eax, dword [0x466c14]
push 0xcc0020
push 0
push 0
push edi
push ecx
push edx
push 0
push 0
push ebx
push eax
call fcn.00401350
mov ecx, dword [esi + 0xa4]
add esp, 0x28
push ecx
push edi
call dword [sym.imp.gdi32.dll_SelectObject]
push edi
mov dword [esi + 0xa4], eax
call dword [sym.imp.gdi32.dll_DeleteDC]
push ebx
push ebp
call dword [sym.imp.user32.dll_ReleaseDC]
push ebp
call fcn.004153d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2d4
ret