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

Disassembly:
sub esp, 0x258
mov eax, dword [0x445654]
xor eax, esp
mov dword [esp + 0x254], eax
mov edx, dword [0x446e50]
mov eax, dword [esp + 0x260]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x290]
xor esi, esi
lea ecx, [esp + 0x20]
push ecx
push esi
push 0x1005
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
mov byte [esp + 0x22], 0
mov byte [esp + 0x23], 0
mov dword [esp + 0x30], 4
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [esp + 0x27c]
mov ebp, dword [esp + 0x274]
test eax, eax
je 0x40cfcc
lea esp, [esp]
mov ecx, dword [esp + 0x40]
test ebp, ebp
je 0x40cc8d
cmp ebp, 2
jne 0x40cca0
mov eax, dword [esp + 0x280]
cmp dword [ecx + 0x42c], eax
jne 0x40cda6
cmp ebp, 1
je 0x40ccaa
cmp ebp, 3
jne 0x40cce1
mov eax, dword [esp + 0x284]
mov edi, ecx
sub edi, eax
mov edx, 0x10
add edi, 0x430
mov ebx, dword [edi + eax]
cmp ebx, dword [eax]
jne 0x40cd9b
sub edx, 4
add eax, 4
cmp edx, 4
jae 0x40ccc0
mov ebx, dword [esp + 0x27c]
mov edi, dword [esp + 0x18]
mov eax, dword [ecx]
test eax, eax
je 0x40cda6
cmp eax, 5
je 0x40cda6
cmp dword [ecx + 8], ebp
jne 0x40cda6
mov edx, dword [esp + 0x288]
cmp dword [ecx + 0x440], edx
jne 0x40cda6
cmp ebp, 2
je 0x40cd2d
cmp ebp, 3
je 0x40cd2d
test ebp, ebp
jne 0x40cd42
mov eax, dword [esp + 0x28c]
cmp dword [ecx + 0x660], eax
je 0x40cd6f
xor eax, eax
cmp dword [ecx], 3
setne al
dec eax
and eax, 2
mov dword [ecx], eax
xor eax, eax
jmp 0x40d149
cmp ebp, 1
jne 0x40cd6f
mov esi, ecx
sub esi, edi
lea edx, [ebp + 0xf]
mov eax, edi
add esi, 0x64d
mov ebx, dword [esi + eax]
cmp ebx, dword [eax]
jne 0x40cd2d
sub edx, 4
add eax, 4
cmp edx, 4
jae 0x40cd56
mov ebx, dword [esp + 0x27c]
cmp dword [ecx + 0x21c], ebx
jne 0x40cd92
mov edx, dword [esp + 0x294]
cmp dword [ecx + 0x664], edx
jne 0x40cd92
mov eax, dword [esp + 0x278]
cmp dword [ecx + 0x10], eax
je 0x40cd2d
mov esi, ecx
mov byte [esp + 0x13], 1
jmp 0x40cda6
mov ebx, dword [esp + 0x27c]
mov edi, dword [esp + 0x18]
mov edx, dword [0x446e50]
inc dword [esp + 0x24]
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x1005
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x40cc80
test esi, esi
je 0x40cfcc
cmp byte [esp + 0x13], al
je 0x40ce77
mov edx, dword [esp + 0x28c]
push 0x104
lea ecx, [esi + 0x445]
push ecx
push edi
push edx
push eax
push 1
push ebp
call fcn.0040a790
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x2b0]
push 0x104
mov byte [esi + 0x220], al
lea eax, [esp + 0x180]
push eax
shl ecx, 5
add ecx, 0x445330
push ecx
push edx
push 1
call fcn.0040c580
mov ecx, dword [esp + 0x2bc]
push 0x104
lea eax, [esi + 0x549]
push eax
push edi
push ecx
push 0
push 0
push ebp
call fcn.0040a790
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x2e0]
add esp, 0x4c
push 0x104
lea edx, [esp + 0x164]
push edx
shl eax, 5
add eax, 0x445330
push eax
push ecx
push 0
call fcn.0040c580
add esp, 0x14
movzx edx, byte [0x446e59]
mov eax, dword [0x446e18]
sub eax, edx
cmp eax, 4
je 0x40ce8f
cmp eax, 6
jne 0x40ce94
mov byte [esp + 0x12], 1
xor eax, eax
cmp byte [esp + 0x26c], al
setne al
dec eax
and eax, 5
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x40cec3
cmp eax, 1
je 0x40cec3
mov dword [esi + 0x21c], ebx
jmp 0x40cee3
mov eax, dword [esi + 0x21c]
lea eax, [eax + eax*8]
dec dword [eax*4 + 0x445178]
lea eax, [ebx + ebx*8]
mov dword [esi + 0x21c], ebx
inc dword [eax*4 + 0x445178]
mov eax, dword [esp + 0x278]
mov ecx, dword [esp + 0x28c]
mov edx, dword [esp + 0x294]
mov dword [esi + 0x660], ecx
mov dword [esi + 0x664], edx
cmp eax, dword [esi + 0x10]
je 0x40cf90
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
je 0x40cf53
push 0x104
lea ecx, [esp + 0x60]
push ecx
push eax
call fcn.00406bb0
add esp, 0xc
test al, al
je 0x40cf53
lea edx, [esp + 0x5c]
push 1
push edx
call fcn.00409d20
mov edi, eax
add esp, 8
test edi, edi
jne 0x40cf57
push eax
lea eax, [esp + 0x60]
push eax
call fcn.00409d20
add esp, 8
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40cf65
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xc], edi
cmp eax, 0xffffffff
je 0x40cf90
cmp dword [0x446e18], 0
jne 0x40cf7f
mov byte [esp + 0x12], 1
mov edx, dword [esi + 0x10]
lea ecx, [esi + 0x14]
push ecx
push edx
push eax
call fcn.0040aa40
add esp, 0xc
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push eax
mov eax, dword [0x446e50]
push 0x1015
push eax
call esi
cmp byte [esp + 0x12], 0
je 0x40cfc5
mov ecx, dword [0x446e50]
push fcn.00408650
push 0
push 0x1030
push ecx
call esi
xor eax, eax
jmp 0x40d149
mov eax, dword [esp + 0x278]
cmp eax, 0xffffffff
je 0x40d018
push 0x104
lea edx, [esp + 0x60]
push edx
push eax
call fcn.00406bb0
add esp, 0xc
test al, al
je 0x40d018
lea eax, [esp + 0x5c]
push 1
push eax
call fcn.00409d20
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x40d018
push eax
lea ecx, [esp + 0x60]
push ecx
call fcn.00409d20
add esp, 8
mov dword [esp + 0x14], eax
push 0x6d0
call fcn.00412493
push 0x6d0
mov esi, eax
push 0
push esi
call fcn.00412350
xor edx, edx
add esp, 0x10
cmp byte [esp + 0x26c], dl
setne dl
dec edx
and edx, 2
mov dword [esi], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 4], eax
mov dword [esi + 8], ebp
mov dword [esi + 0x21c], ebx
test ebp, ebp
je 0x40d061
cmp ebp, 1
jne 0x40d06b
lea eax, [ebx + ebx*8]
inc dword [eax*4 + 0x445178]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x278]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x10], edx
mov byte [eax], 0
cmp ecx, 0xffffffff
je 0x40d096
push eax
push edx
push ecx
call fcn.0040aa40
add esp, 0xc
test ebp, ebp
je 0x40d0a6
cmp ebp, 1
je 0x40d0a6
mov eax, 1
jmp 0x40d0a8
xor eax, eax
mov ecx, dword [esp + 0x280]
mov byte [esi + 0x444], al
mov eax, dword [esp + 0x284]
mov dword [esi + 0x42c], ecx
test eax, eax
je 0x40d0e9
mov edx, dword [eax]
mov dword [esi + 0x430], edx
mov ecx, dword [eax + 4]
mov dword [esi + 0x434], ecx
mov edx, dword [eax + 8]
mov dword [esi + 0x438], edx
mov eax, dword [eax + 0xc]
mov dword [esi + 0x43c], eax
mov ecx, dword [esp + 0x288]
mov edx, dword [esp + 0x28c]
mov dword [esi + 0x440], ecx
mov dword [esi + 0x660], edx
test edi, edi
je 0x40d12a
mov eax, dword [edi]
mov dword [esi + 0x64d], eax
mov ecx, dword [edi + 4]
mov dword [esi + 0x651], ecx
mov edx, dword [edi + 8]
mov dword [esi + 0x655], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0x659], eax
mov ecx, dword [esp + 0x294]
mov dword [esi + 0x664], ecx
mov edx, dword [0x446e50]
push esi
push edx
call fcn.0040c9b0
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00411a73
add esp, 0x258
ret