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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10073212
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
push esi
push edi
mov al, byte [ebp + 0x3c]
test al, al
jne 0x1004586e
xor al, al
jmp 0x10045e40
mov edi, dword [esp + 0x78]
test edi, edi
jne 0x1004587d
xor al, al
jmp 0x10045e40
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x34]
mov ebx, eax
mov eax, dword [ebp + 0x38]
lea esi, [ebp + 0x2c]
sub eax, edx
push eax
sub ecx, dword [esi]
push ecx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xffffff
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0xffffff
push 0
push 0
mov edi, eax
call dword [sym.imp.GDI32.dll_CreatePen]
push edi
push ebx
mov dword [esp + 0x7c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x10], eax
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x38]
sub eax, edx
push eax
mov eax, dword [esi]
sub ecx, eax
push ecx
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_Rectangle]
mov edx, dword [esp + 0x10]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x14]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
test edi, edi
je 0x1004592a
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x74]
test eax, eax
je 0x10045939
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x10099db8
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_SelectObject]
xor edi, edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x40]
sub eax, edi
je 0x10045c2d
dec eax
je 0x10045a32
dec eax
jne 0x10045dc6
push 1
push ebx
mov byte [ebp + 0x271], 1
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x60], ecx
mov ecx, dword [ebp + 0x30]
mov dword [esp + 0x58], edx
sub eax, ecx
mov dword [esp + 0x38], edi
cdq
sub eax, edx
mov dword [esp + 0x3c], edi
sar eax, 1
add eax, ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x58], eax
mov edi, 0x10099f28
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov dl, byte [esp + 0x78]
push 1
not ecx
dec ecx
mov byte [esp + 0x38], dl
mov ebp, ecx
lea ecx, [esp + 0x38]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x10045a08
mov edi, dword [esp + 0x38]
mov ecx, ebp
mov eax, ecx
mov esi, 0x10099f28
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x3c], ebp
mov byte [ecx + ebp], 0
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x10045a15
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]
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x54]
push 1
push edx
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x38]
jmp 0x10045bc1
lea edi, [ebp + 0x68]
push 0
mov ecx, edi
call fcn.1005b1b0
cmp eax, 1
jne 0x10045a6e
cmp dword [ebp + 0x1f0], 1
jne 0x10045a6e
mov al, byte [ebp + 0x271]
test al, al
jne 0x10045be6
mov edx, dword [ebp + 0x44]
push 1
push esi
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov byte [ebp + 0x271], 1
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, esi
mov esi, dword [esi]
mov edi, 0x10099f1c
mov ecx, dword [eax]
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebp + 0x30]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 0x38]
sub eax, ecx
mov dword [esp + 0x50], edx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov cl, byte [esp + 0x78]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x34]
sub eax, esi
mov byte [esp + 0x24], cl
cdq
sub eax, edx
or ecx, 0xffffffff
sar eax, 1
lea eax, [eax + esi - 0x14]
mov dword [esp + 0x44], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], eax
push ecx
push 0x10099f1c
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 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_char_const___unsigned_int_]
mov eax, dword [ebp + 0x274]
mov dword [esp + 0x6c], 1
test eax, eax
mov dword [esp + 0x74], 0
jle 0x10045b9c
mov edi, 0x10085614
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
repne scasb al, byte es:[edi]
mov eax, dword [edx]
mov edx, dword [esp + 0x2c]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x10045b35
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x10045b85
mov ecx, dword [esp + 0x2c]
push 0
lea eax, [ecx + esi]
lea ecx, [esp + 0x28]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x10045b85
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, esi
mov esi, 0x10085614
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov byte [ecx + eax], 0
mov eax, dword [esp + 0x74]
mov ecx, dword [ebp + 0x274]
inc eax
cmp eax, ecx
mov dword [esp + 0x74], eax
jl 0x10045b0c
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x10045ba9
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]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x44]
push 0
push edx
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x10045dc6
mov al, byte [ecx - 1]
test al, al
je 0x10045dbc
cmp al, 0xff
je 0x10045dbc
dec al
mov byte [ecx - 1], al
jmp 0x10045dc6
add ebp, 0x50
mov ecx, ebp
call fcn.1004d330
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
sub esp, 0x10
mov eax, esp
push ebx
mov dword [eax], ecx
mov ecx, dword [esp + 0x98]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x9c]
mov dword [eax + 8], ecx
mov ecx, edi
mov dword [eax + 0xc], edx
call fcn.1005c1e0
mov ecx, ebp
call fcn.1004d380
jmp 0x10045dc6
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, esi
mov esi, dword [esi]
push edi
mov eax, dword [edx]
mov dword [esp + 0x48], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x4c], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x38]
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x54], ecx
mov ecx, dword [ebp + 0x30]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x34]
sub eax, esi
cdq
sub eax, edx
sar eax, 1
lea edx, [eax + esi - 0x14]
mov al, byte [esp + 0x7c]
mov dword [esp + 0x48], edx
mov byte [esp + 0x28], 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 edi, 0x10099f1c
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea ecx, [esp + 0x28]
push esi
mov dword [esp + 0x7c], esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x10045cda
mov edi, dword [esp + 0x28]
mov ecx, esi
mov edx, ecx
mov esi, 0x10099f1c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov byte [ecx + eax], 0
mov ecx, dword [ebp + 0x274]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], eax
jle 0x10045d81
mov edi, 0x10085614
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
repne scasb al, byte es:[edi]
mov eax, dword [edx]
mov edx, dword [esp + 0x2c]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x10045d1b
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x10045d6a
mov ecx, dword [esp + 0x2c]
push 0
lea eax, [ecx + esi]
lea ecx, [esp + 0x28]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x10045d6a
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, esi
mov esi, 0x10085614
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov eax, dword [esp + 0x74]
mov ecx, dword [ebp + 0x274]
inc eax
cmp eax, ecx
mov dword [esp + 0x74], eax
jl 0x10045cf2
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x10045d8e
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]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x44]
push 0
push ecx
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x10045dc6
mov al, byte [ecx - 1]
test al, al
je 0x10045dbc
cmp al, 0xff
je 0x10045dbc
dec al
mov byte [ecx - 1], al
jmp 0x10045dc6
dec ecx
push ecx
call fcn.1003c010
add esp, 4
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
push 0xcc0020
push 0
push 0
sub eax, edx
push ebx
push eax
mov eax, dword [esp + 0x98]
sub eax, ecx
push eax
mov eax, dword [esp + 0x90]
push edx
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x18]
push ecx
push ebx
call esi
mov edx, dword [esp + 0x10]
push edx
push ebx
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10045e24
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10045e33
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test ebx, ebx
je 0x10045e3e
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov al, 1
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret 0x18