Function at 0x1005c570
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
push ebx
push ebp
mov ebp, ecx
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov ebx, dword [ebp + 0xf0]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
dec ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x20], eax
js 0x1005c9f9
push esi
push edi
lea eax, [ebp + 0xc8]
push ebx
mov ecx, dword [eax]
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x54], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x50]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x5c], edx
call fcn.10060550
mov esi, dword [esp + 0x54]
mov eax, dword [esi + 0x1c]
mov edi, dword [esi + 4]
mov dword [esp + 0x3c], eax
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x40], ecx
mov edx, dword [esi + 0x24]
add edx, dword [esi + 0x1c]
mov dword [esp + 0x44], edx
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x20]
add eax, ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x84]
push eax
mov eax, dword [esp + 0x84]
push eax
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x1005c6fa
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov ebx, 1
cmp eax, ebx
jne 0x1005c6e1
cmp dword [edi + 0x10], ebx
jne 0x1005c6e1
mov dword [edi + 0x10], 0
mov eax, dword [esi]
cmp eax, ebx
jne 0x1005c660
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_UnionRect]
cmp dword [ebp + 0x124], ebx
jne 0x1005c6b7
mov eax, dword [ebp + 0x128]
mov edx, dword [ebp + 0x130]
mov ecx, dword [ebp + 0x12c]
mov dword [esp + 0x2c], eax
add edx, eax
mov eax, dword [ebp + 0x134]
mov dword [esp + 0x30], ecx
add eax, ecx
mov dword [esp + 0x34], edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x38], eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_UnionRect]
mov dword [ebp + 0x124], 0
mov eax, dword [ebp + 0x158]
test eax, eax
je 0x1005c6e1
mov ecx, dword [ebp + 0x15c]
push 0x6789ffff
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
mov dword [ebp + 0x158], eax
mov dword [ebp + 0x154], eax
mov ebx, dword [esp + 0x14]
dec ebx
mov dword [esp + 0x14], ebx
jns 0x1005c5a4
mov ebx, 1
jmp 0x1005c9c1
cmp dword [esi], 1
jne 0x1005c70c
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
test eax, eax
jne 0x1005c70c
jmp 0x1005c6e5
dec ebx
test ebx, ebx
jl 0x1005c824
lea eax, [ebp + 0xc8]
push ebx
mov ecx, dword [eax]
mov dword [esp + 0x60], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x64], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x60]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x6c], edx
call fcn.10060550
mov eax, dword [esp + 0x64]
mov ecx, 1
mov edx, dword [eax + 4]
cmp dword [edx + 0x10], ecx
je 0x1005c759
dec ebx
jns 0x1005c715
jmp 0x1005c824
mov edx, dword [eax + 4]
xor ebx, ebx
mov dword [edx + 0x10], ebx
mov edx, dword [eax]
cmp edx, ecx
jne 0x1005c7a9
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x6c], ecx
mov edx, dword [eax + 0x20]
mov dword [esp + 0x70], edx
mov ecx, dword [eax + 0x24]
add ecx, dword [eax + 0x1c]
mov dword [esp + 0x74], ecx
mov edx, dword [eax + 0x28]
mov ecx, dword [eax + 0x20]
lea eax, [esp + 0x6c]
add edx, ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x78], edx
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_UnionRect]
mov ecx, 1
cmp dword [ebp + 0x124], ecx
jne 0x1005c7fc
mov eax, dword [ebp + 0x128]
mov edx, dword [ebp + 0x130]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0x12c]
mov dword [esp + 0x2c], eax
add edx, eax
mov eax, dword [ebp + 0x134]
mov dword [esp + 0x30], ecx
add eax, ecx
mov dword [esp + 0x34], edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x38], eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_UnionRect]
mov dword [ebp + 0x124], ebx
cmp dword [ebp + 0x158], ebx
je 0x1005c824
mov ecx, dword [ebp + 0x15c]
push 0x6789ffff
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
mov dword [ebp + 0x158], eax
mov dword [ebp + 0x154], eax
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov ebx, 1
cmp eax, ebx
jne 0x1005c9c1
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x1005c99f
mov dword [edi + 0x10], ebx
mov eax, dword [esi]
cmp eax, ebx
jne 0x1005c865
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_UnionRect]
mov ecx, dword [ebp + 0x15c]
xor eax, eax
mov dword [esp + 0x50], eax
lea edx, [esp + 0x4c]
mov dword [esp + 0x54], eax
push edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x50], 0x10
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], 2
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1005c9bd
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [ebp + 0x138]
mov edi, ecx
cmp edi, 0xfffffffd
mov dword [esp + 0x84], edi
jbe 0x1005c8d7
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x1005c8fd
mov al, byte [ecx - 1]
test al, al
je 0x1005c8fd
cmp al, 0xff
je 0x1005c8fd
test edi, edi
jne 0x1005c923
dec al
push edi
mov byte [ecx - 1], al
mov ecx, ebx
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 0x1005c950
test edi, edi
jne 0x1005c90d
push 1
mov ecx, ebx
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 0x1005c950
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x1005c919
cmp eax, edi
jae 0x1005c92c
push 1
mov ecx, ebx
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
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov ecx, edi
mov edi, dword [ebx + 4]
mov edx, ecx
mov eax, dword [esp + 0x84]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [ecx + eax], 0
mov eax, dword [ebp + 0x158]
test eax, eax
je 0x1005c96c
mov edx, dword [ebp + 0x15c]
push 0x6789ffff
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [ebp + 0x15c]
push 0x1005dbf0
push 0x1f4
push 0x6789ffff
push eax
mov dword [ebp + 0x154], 0x3e8
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebp + 0x158], eax
mov ebx, 1
jmp 0x1005c9bd
mov eax, dword [ebp + 0x158]
test eax, eax
je 0x1005c9bd
mov eax, dword [ebp + 0x124]
test eax, eax
jne 0x1005c9bd
mov dword [ebp + 0x154], 0x3e8
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
pop edi
cmp eax, ebx
pop esi
jne 0x1005c9de
mov edx, dword [ebp + 0x15c]
lea ecx, [esp + 0x14]
push ebx
push ecx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [esp + 0x10], ebx
jne 0x1005c9f9
mov ebp, dword [ebp + 0x168]
push ebp
call dword [sym.imp.USER32.dll_SetCursor]
pop ebp
pop ebx
add esp, 0x6c
ret 8
mov ebp, dword [ebp + 0x164]
push ebp
call dword [sym.imp.USER32.dll_SetCursor]
pop ebp
pop ebx
add esp, 0x6c
ret 8