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

Disassembly:
mov eax, 0x42f268
call fcn.0042e9c0
sub esp, 0x40
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0xa727ffff
push 0xf191ffff
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
call fcn.0040a8f9
add dword [0x438c44], eax
cmp dword [edi + 0xa0], ebx
pop ecx
pop ecx
je 0x404691
movsx eax, byte [0x438c19]
and eax, 0xf845ffff
mov dword [0x438c50], eax
mov al, byte [0x438c2e]
and al, byte [0x438c1f]
add byte [0x438c20], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [0x438c1d], al
lea eax, [ebp - 0x3c]
push 4
push eax
call fcn.004219ef
movsx eax, byte [0x438c1f]
push 1
pop esi
push dword [0x438c58]
mov dword [ebp - 4], esi
push eax
call fcn.0040a9de
push dword [ebp + 0xc]
mov word [0x438c28], ax
lea eax, [ebp - 0x2c]
push eax
call fcn.004050cd
add esp, 0x18
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [ebp - 4], 2
push dword [ecx]
lea ecx, [ebp - 0x3c]
push ebx
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__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push dword [0x438c5c]
push 0xf1fffff
call fcn.0040a9a5
mov word [0x438c2c], ax
mov eax, dword [0x438c54]
imul eax, dword [0x438c50]
add word [0x438c32], ax
pop ecx
pop ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
add word [0x438c34], ax
mov dword [ebp - 0x10], ebx
movsx eax, byte [0x438c1d]
push eax
push dword [0x438c58]
call fcn.0040aac5
add dword [0x438c3c], eax
mov eax, dword [0x438c5c]
imul eax, eax, 0xc3a5ffff
add dword [0x438c48], eax
push 0xd14fffff
push 0x89e9ffff
call fcn.0040a9de
mov dword [0x438c58], eax
mov eax, dword [ebp - 0x38]
add esp, 0x10
cmp eax, ebx
jne 0x4044d0
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ebx
push ecx
push ebx
push eax
push dword [edi + 0xa0]
push 0x12
call fcn.0040ebd2
pop ecx
call eax
test eax, eax
jne 0x404682
cmp dword [ebp - 0x14], esi
jne 0x404682
movsx eax, byte [0x438c1b]
push eax
push dword [0x438c48]
call fcn.0040aac5
pop ecx
pop ecx
mov cl, al
mov al, byte [0x438c28]
imul cl
add byte [0x438c1c], al
mov byte [0x438c1b], cl
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
add dword [0x438c40], eax
mov eax, dword [ebp - 0x10]
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
movsx ax, byte [0x438c1a]
movsx cx, byte [0x438c1c]
add eax, ecx
mov word [0x438c28], ax
mov ax, word [0x438c30]
inc ax
add word [0x438c2a], ax
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x404572
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push edi
push ecx
push ebx
push eax
mov eax, dword [ebp - 0x1c]
push dword [eax + 0xa0]
push 0x12
call fcn.0040ebd2
pop ecx
call eax
test eax, eax
jne 0x404662
movsx eax, word [0x438c32]
push 0x9e71ffff
push eax
call fcn.0040a96f
mov byte [0x438c1d], al
push 0xd7c9ffff
movsx eax, word [0x438c30]
push eax
call fcn.0040aac5
add byte [0x438c1f], al
mov eax, dword [ebp - 0x10]
add esp, 0x10
lea ecx, [ebp - 0x2c]
mov byte [edi + eax], bl
mov al, byte [ebp + 0xb]
push ebx
mov byte [ebp - 0x2c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push edi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
lea ecx, [ebp - 0x2c]
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_char_const___unsigned_int_]
push dword [0x438c5c]
mov byte [ebp - 4], 3
push 0xbce9ffff
call fcn.0040a8f9
pop ecx
mov dword [0x438c58], eax
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add dword [0x438c58], eax
push edi
call fcn.0042e920
mov edi, dword [ebp + 8]
mov al, byte [ebp - 0x2c]
pop ecx
push ebx
mov ecx, edi
mov byte [edi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
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, edi
push dword [eax]
lea eax, [ebp - 0x2c]
push ebx
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 dword [ebp - 0x18], esi
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov byte [ebp - 4], bl
push esi
lea ecx, [ebp - 0x3c]
jmp 0x4046ff
movsx eax, word [0x438c34]
push eax
push 0x85cfffff
call fcn.0040ab0e
push edi
mov dword [0x438c3c], eax
call fcn.0042e920
add esp, 0xc
push esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x404694
push 1
pop esi
push 0xadf3ffff
push 0xecebffff
call fcn.0040ab0e
add dword [0x438c50], eax
mov al, byte [ebp + 0xb]
pop ecx
mov byte [ebp - 0x4c], al
pop ecx
push ebx
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push dword [ebp + 0x10]
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 4
push eax
call fcn.0040b952
mov edi, dword [ebp + 8]
mov al, byte [ebp - 0x4c]
pop ecx
pop ecx
mov byte [edi], al
push ebx
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
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, edi
push dword [eax]
lea eax, [ebp - 0x4c]
push ebx
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 dword [ebp - 0x18], esi
mov byte [ebp - 4], bl
push esi
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc