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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40968b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x40f01c]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x40f01c]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dword [esi + 0xf4], 0
je 0x405d52
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
mov eax, dword [esi + 0xf4]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp byte [esi + 0xe0], 0
je 0x405aa8
mov eax, dword [esi + 0xdc]
add eax, eax
mov dword [esp + 0x14], eax
test eax, eax
jle 0x405a71
cmp eax, dword [esi + 0xd4]
jge 0x405a71
mov ecx, dword [esi + 0xc]
sub ecx, dword [esi + 4]
cmp eax, ecx
jge 0x405a71
mov edx, dword [esi + 0xd8]
mov eax, dword [esi + 0xdc]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 8]
push 0xff80ff
push edx
mov edx, dword [esi + 8]
push eax
push 0
push 0
push ebx
push ecx
push eax
mov eax, dword [esi + 4]
push edx
push eax
push edi
call dword [sym.imp.MSIMG32.dll_TransparentBlt]
mov ecx, dword [esi + 0xd8]
mov edx, dword [esi + 0xd4]
mov eax, dword [esi + 0xdc]
push 0xff80ff
push ecx
mov ecx, dword [esp + 0x1c]
sub edx, ecx
push edx
mov edx, dword [esi + 0x10]
sub edx, dword [esi + 8]
push 0
push eax
push ebx
push edx
mov edx, dword [esi + 0xc]
sub edx, dword [esi + 4]
sub edx, ecx
mov ecx, dword [esi + 8]
push edx
mov edx, dword [esi + 4]
push ecx
add edx, eax
push edx
push edi
call dword [sym.imp.MSIMG32.dll_TransparentBlt]
mov eax, dword [esi + 0xdc]
mov ecx, dword [esi + 0xd8]
mov edx, dword [esi + 0xd4]
push 0xff80ff
push ecx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 8]
push eax
push 0
sub edx, eax
push edx
mov edx, dword [esi + 8]
push ebx
push ecx
mov ecx, dword [esi + 0xc]
push eax
push edx
sub ecx, eax
push ecx
push edi
call dword [sym.imp.MSIMG32.dll_TransparentBlt]
jmp 0x405acb
mov edx, dword [esi + 0xd8]
mov eax, dword [esi + 0xd4]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 8]
push 0xff80ff
push edx
mov edx, dword [esi + 0xc]
sub edx, dword [esi + 4]
push eax
mov eax, dword [esi + 8]
push 0
push 0
push ebx
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
push edi
call dword [sym.imp.MSIMG32.dll_TransparentBlt]
jmp 0x405acb
mov edx, dword [esi + 0xd8]
mov eax, dword [esi + 0xd4]
push 0xcc0020
push 0
push 0
push ebx
push edx
push eax
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [esi + 0x84], 0
jbe 0x405d52
mov ebx, dword [esi + 0xe8]
add ebx, dword [esi + 8]
mov eax, dword [esi + 0xec]
mov edx, dword [esi + 0xe4]
mov ecx, dword [esi + 0xf0]
add edx, dword [esi + 4]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esi + 0xc]
sub ebx, eax
mov eax, dword [esi + 0x10]
sub eax, ecx
push edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_SaveDC]
push 1
push edi
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esi + 0xb0]
push ecx
push edi
mov dword [esp + 0x44], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [esp + 0x40], eax
call fcn.00407110
mov eax, dword [esi + 0xb4]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x44], eax
lea eax, [esi + 0x70]
push eax
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov dword [esp + 0xa0], 0
cmp dword [esp + 0x8c], 8
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ecx
jae 0x405b9b
lea eax, [esp + 0x78]
mov ecx, dword [esp + 0x88]
push 0x400
lea edx, [esp + 0x30]
push edx
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
cmp dword [esp + 0x34], ebx
mov ecx, eax
jle 0x405caf
xor eax, eax
cmp dword [esi + 0x84], eax
mov dword [esp + 0x14], eax
jle 0x405caf
jmp 0x405bd9
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x405bee
push 0x40c028
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
jmp 0x405c61
push eax
push 0
lea edx, [esp + 0x60]
push edx
lea ecx, [esi + 0x70]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0xa4], 1
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 0x40c028
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x60]
push ecx
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
add esp, 0xc
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0xa4], 2
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [esp + 0x8c], 8
mov eax, dword [esp + 0x78]
jae 0x405c73
lea eax, [esp + 0x78]
mov ecx, dword [esp + 0x88]
push 0x400
lea edx, [esp + 0x30]
push edx
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [esp + 0x34]
add edx, 0x10
cmp edx, ebx
mov ecx, eax
jg 0x405caf
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esi + 0x84]
mov dword [esp + 0x14], eax
jl 0x405bd5
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x54], eax
sub eax, ecx
sub eax, edx
mov dword [esp + 0x4c], edx
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
push 0
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x5c], ebx
call dword [sym.imp.USER32.dll_InflateRect]
cmp dword [esp + 0x8c], 8
mov eax, dword [esp + 0x78]
jae 0x405cf6
lea eax, [esp + 0x78]
mov ecx, dword [esp + 0x88]
push 1
lea edx, [esp + 0x4c]
push edx
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [esp + 0x44]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x40]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x3c]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esp + 0x28]
push edx
push edi
call dword [sym.imp.GDI32.dll_RestoreDC]
lea ecx, [esp + 0x74]
mov dword [esp + 0xa0], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00408c84
mov esp, ebp
pop ebp
ret 4