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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
call fcn.00421e38
mov esi, eax
call fcn.00422637
xor ebx, ebx
push 4
mov edi, eax
mov byte [ebp - 2], bl
call fcn.0040481f
cmp edi, esi
pop ecx
jbe 0x406df2
add eax, esi
cmp edi, eax
jae 0x406df2
mov byte [ebp - 2], 1
movsx eax, byte [0x438c19]
push eax
push 0xd741ffff
call fcn.0040a8f9
push dword [0x438c38]
mov byte [0x438c18], al
push dword [0x438c44]
call fcn.0040aa83
add word [0x438c30], ax
push 0xd307ffff
push 0xbe05ffff
call fcn.0040aa18
add esp, 0x18
cmp dword [0x438b0c], ebx
mov word [0x438c26], ax
jne 0x407261
cmp byte [0x4380c0], bl
jne 0x406e52
call fcn.0042d8b8
inc word [0x438c28]
mov byte [0x4380c0], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
add word [0x438c2e], ax
call fcn.004218ff
mov dword [ebp - 0xc], eax
mov al, byte [0x438c20]
mov dword [ebp - 8], edx
mov byte [0x438c1a], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
add word [0x438c24], ax
push ebx
call fcn.0040481f
push 1
mov esi, eax
call fcn.0040481f
or byte [0x438c21], 0xff
push 2
mov edi, eax
call fcn.0040481f
mov dword [ebp - 0x18], eax
mov al, byte [0x438c44]
add al, byte [0x438c20]
push 3
add byte [0x438c1f], al
call fcn.0040481f
mov ecx, dword [0x438c5c]
mov dword [ebp - 0x1c], eax
movsx eax, word [0x438c22]
add esp, 0x10
cmp dword [ebp - 8], esi
lea eax, [ecx + eax - 0x1b09ffff]
mov dword [0x438c5c], eax
ja 0x406fd0
jb 0x406efb
cmp dword [ebp - 0xc], edi
jae 0x406fd0
inc word [0x438c28]
cmp byte [0x438c1c], bl
je 0x406f18
cmp word [0x438c28], bx
je 0x406f18
push 1
pop eax
jmp 0x406f1a
xor eax, eax
mov cl, byte [0x438c1e]
push ebx
dec cl
push 0x989680
add byte [0x438c20], cl
mov ecx, dword [0x438c58]
add ecx, eax
neg ecx
sub edi, dword [ebp - 0xc]
mov word [0x438c32], cx
sbb esi, dword [ebp - 8]
push esi
push edi
call fcn.0042ebe0
inc word [0x438c24]
mov esi, eax
mov edi, edx
mov dword [0x438c58], 0x87200000
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp edi, ebx
mov dword [0x438c5c], eax
ja 0x406fd0
jb 0x406f7a
cmp esi, 0x15180
jae 0x406fd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
imul esi, esi, 0x3e8
add word [0x438c24], ax
push esi
push 0x56
call fcn.0040ebd2
pop ecx
call eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [0x438c1c], al
movsx eax, byte [0x438c20]
push eax
push dword [0x438c48]
call fcn.0040a8f9
add byte [0x438c1b], al
mov al, byte [0x438c2a]
add al, byte [0x438c20]
pop ecx
pop ecx
mov byte [0x438c1d], al
jmp 0x406fd5
mov al, byte [0x438c1d]
sub byte [0x438c1f], al
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
add word [0x438c2c], 0xfffe
mov edx, eax
mov byte [ebp - 1], bl
or edx, ecx
mov edi, 0x2a69c000
mov esi, 0xc9
jne 0x407052
call fcn.004218ff
add eax, edi
adc edx, esi
mov dword [ebp - 0x1c], eax
xor eax, eax
cmp word [0x438c2a], bx
push edx
push 2
setne al
mov dword [0x438c48], eax
call fcn.004048a2
movsx eax, word [0x438c26]
push eax
push 0xb389ffff
mov dword [0x438c40], 0xdf360001
call fcn.0040a933
push dword [ebp - 0x1c]
mov word [0x438c22], ax
push 3
call fcn.004048a2
add esp, 0x18
jmp 0x4070cf
cmp dword [ebp - 8], ecx
jb 0x407064
ja 0x40705e
cmp dword [ebp - 0xc], eax
jbe 0x407064
mov byte [ebp - 1], 1
jmp 0x4070cf
movsx eax, word [0x438c2a]
push eax
push dword [0x438c50]
call fcn.0040aa83
add dword [0x438c3c], eax
push 0x10fdffff
push dword [0x438c54]
call fcn.0040a933
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
sub ecx, dword [ebp - 0xc]
mov byte [0x438c1e], al
mov eax, dword [ebp - 0x18]
push ebx
sbb eax, dword [ebp - 8]
push 0x989680
push eax
push ecx
call fcn.0042ebe0
cmp edx, ebx
ja 0x4070b9
cmp eax, 0x15180
jbe 0x4070bd
mov byte [ebp - 1], 1
push dword [0x438c38]
call dword [sym.imp.USER32.dll_IsMenu]
mov word [0x438c2c], ax
push 0xd237ffff
push 0x7587ffff
call fcn.0040aa83
mov dword [0x438c40], eax
mov al, byte [0x438c34]
add byte [0x438c1e], al
cmp byte [ebp - 1], bl
pop ecx
pop ecx
je 0x407214
push 0x52abffff
push 0x15fbffff
call fcn.0040a9a5
mov byte [0x438c19], al
movsx eax, word [0x438c2a]
push eax
push 0xbcddffff
call fcn.0040a8f9
add byte [0x438c19], al
inc byte [0x438c18]
push 1
call fcn.00405316
movsx eax, word [0x438c34]
and eax, dword [0x438c50]
mov dword [0x438c5c], eax
mov al, byte [0x438c48]
dec al
mov byte [0x438c21], al
call fcn.004218ff
add eax, edi
push 0xaef1ffff
adc edx, esi
push 0x5fc3ffff
mov esi, eax
mov edi, edx
call fcn.0040aac5
mov dword [0x438c50], eax
movsx eax, byte [0x438c1a]
push eax
push 0x2485ffff
call fcn.0040a933
add dword [0x438c58], eax
push edi
push 2
call fcn.004048a2
push dword [0x438c44]
push 0x2b1fffff
call fcn.0040aa83
add word [0x438c30], ax
mov al, byte [0x438c19]
add byte [0x438c1b], al
push 0x19e3ffff
push 0x4727ffff
call fcn.0040aa83
add dword [0x438c50], eax
push esi
push 3
call fcn.004048a2
movsx eax, word [0x438c2c]
add esp, 0x44
push 0xae35ffff
push eax
call fcn.0040aa18
pop ecx
mov byte [0x438c1c], al
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x438c48], eax
movsx eax, word [0x438c2a]
push eax
movsx eax, word [0x438c22]
push eax
call fcn.0040a933
add dword [0x438c58], eax
pop ecx
pop ecx
movsx eax, word [0x438c34]
push eax
movsx eax, word [0x438c2a]
push eax
call fcn.0040ab0e
pop ecx
mov dword [0x438c5c], eax
pop ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push dword [0x438c4c]
mov word [0x438c26], ax
push 0xd401ffff
call fcn.0040aa18
add byte [0x438c21], al
push ebx
call fcn.00405316
add esp, 0xc
inc byte [0x438c1a]
push dword [0x438c44]
push 0x4ea5ffff
call fcn.0040aa4f
cmp dword [0x438b0c], ebx
pop ecx
pop ecx
mov word [0x438c30], ax
jne 0x407288
xor al, al
jmp 0x4074b9
push 0x1f65ffff
push 0x85fbffff
call fcn.0040aa4f
push 0x7dedffff
push 0x4ae5ffff
mov byte [0x438c1e], al
call fcn.0040aa4f
mov esi, 0x438ae4
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add byte [0x438c1c], al
add esp, 0x10
movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
call fcn.00409faf
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
cmp byte [ebp - 2], bl
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [ecx], eax
jne 0x407380
mov esi, 0x438ae4
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
call fcn.00409faf
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [ebp + 8]
push dword [eax]
mov eax, dword [ebp - 0x1c]
push ebx
push dword [eax]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov esi, 0x438ae4
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
call fcn.00409faf
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [ebp + 0xc]
push dword [eax]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
push ebx
add eax, 0x10
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov esi, 0x438ae4
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
call fcn.00409faf
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [ecx], eax
mov esi, 0x438ae4
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsx ax, byte [0x438c1e]
movsd dword es:[edi], dword [esi]
sub word [0x438c22], ax
mov eax, dword [0x438c50]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x24]
mov ecx, eax
inc word [0x438c2c]
movsd dword es:[edi], dword [esi]
imul ecx, ecx, 0x8b2dffff
add dword [0x438c58], ecx
dec al
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [ebp - 0x24]
mov byte [0x438c1c], al
movsd dword es:[edi], dword [esi]
call fcn.00409faf
mov eax, dword [ebp - 0x1c]
mov dword [eax], ebx
call fcn.004218ff
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
push ebx
push 0x989680
push ebx
mov dword [ebp - 0x18], edx
push dword [eax]
call fcn.0042eba0
mov esi, eax
push 0xffe7ffff
movsx eax, byte [0x438c19]
add esi, dword [ebp - 0x1c]
mov edi, edx
push eax
push 0x9cc7ffff
adc edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x76efffff
mov dword [0x438c5c], eax
call dword [sym.imp.USER32.dll_IsMenu]
mov dword [0x438c3c], eax
mov al, byte [0x438c44]
dec al
push edi
push ebx
mov byte [0x438c18], al
call fcn.004048a2
push esi
push 1
call fcn.004048a2
movsx eax, word [0x438c22]
push dword [0x438c3c]
push eax
call fcn.0040aa18
add word [0x438c24], ax
add esp, 0x18
mov ecx, 0x438ae0
call fcn.004092a6
movsx eax, word [0x438c28]
push eax
push 0x42bbffff
call fcn.0040aa83
add dword [0x438c4c], eax
movsx eax, byte [0x438c1b]
push eax
movsx eax, byte [0x438c1e]
push eax
call fcn.0040aa18
add word [0x438c2e], ax
add esp, 0x10
movsx eax, word [0x438c34]
movsx ecx, byte [0x438c21]
imul eax, ecx
add dword [0x438c44], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret