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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4110e6
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x41901c]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x41901c]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, ecx
cmp byte [esi + 0xa0], 0
mov dword [esp + 0x1c], ebx
je 0x40b73d
push ebx
call dword [sym.imp.GDI32.dll_SaveDC]
cmp byte [esi + 0xf0], 0
mov dword [esp + 0x50], eax
je 0x40b2bc
mov eax, dword [esi + 0xec]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
push 2
jmp 0x40b2be
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp byte [esi + 0xa1], 0
mov dword [esp + 0x34], eax
je 0x40b2db
mov ecx, dword [esi + 0xe8]
push ecx
jmp 0x40b2e2
mov edx, dword [esi + 0x134]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [esp + 0x4c], eax
call fcn.0040b880
mov eax, dword [esi + 0xf4]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x54], eax
lea eax, [esi + 0xa8]
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 edi, dword [esi + 0xc]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edi
jae 0x40b34e
lea eax, [esp + 0x78]
mov edx, dword [esp + 0x88]
push 0x400
lea ecx, [esp + 0x3c]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov edi, eax
cmp byte [esi + 0x114], 0
mov dword [esp + 0x48], edi
je 0x40b573
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 8]
mov ecx, dword [esi + 0x118]
add eax, ecx
add ecx, edi
cdq
idiv ecx
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
add ecx, edi
mov edx, dword [esi + 0x10]
mov dword [esp + 0x30], edx
mov dword [esp + 0x30], ecx
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
or eax, eax
jle 0x40b6f8
jmp 0x40b3d4
mov ecx, dword [esp + 0x20]
lea edi, [ecx + 1]
cmp edi, dword [esi + 0xbc]
mov byte [esp + 0x17], 1
jge 0x40b50e
mov ebx, edi
sub ebx, ecx
jmp 0x40b3f4
mov ecx, dword [esp + 0x20]
push ebx
push ecx
lea ecx, [esi + 0xa8]
lea eax, [esp + 0x60]
push eax
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_]
cmp dword [esp + 0x8c], 8
mov eax, dword [esp + 0x78]
jae 0x40b43e
lea eax, [esp + 0x78]
mov edx, dword [esp + 0x88]
push 0x400
lea ecx, [esp + 0x3c]
push ecx
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x40]
add eax, 0x10
cmp eax, dword [esi + 0xc]
jg 0x40b47b
inc edi
inc ebx
cmp edi, dword [esi + 0xbc]
jl 0x40b3f0
jmp 0x40b50a
cmp dword [esp + 0x18], 1
mov dword [esp + 0x20], edi
mov byte [esp + 0x17], 0
jne 0x40b50a
mov edx, dword [esp + 0x88]
dec edx
push edx
push 0
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x80]
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
mov byte [esp + 0xa4], 2
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [esp + 0xa0], 0
lea ecx, [esp + 0x58]
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 0x4142f8
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x60]
push edx
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], 3
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_]
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0x8c], 8
mov eax, dword [esp + 0x78]
jae 0x40b520
lea eax, [esp + 0x78]
mov edi, dword [esi + 0xfc]
push edi
lea edx, [esp + 0x28]
mov ecx, dword [esp + 0x8c]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
lea edx, [esp + 0x24]
mov eax, dword [esi + 0x118]
add eax, dword [esp + 0x48]
push eax
push 0
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
dec dword [esp + 0x18]
cmp byte [esp + 0x17], 0
jne 0x40b6f8
cmp dword [esp + 0x18], 0
jg 0x40b3d0
jmp 0x40b6f8
cmp byte [esi + 0x100], 0
mov ecx, dword [esp + 0x40]
je 0x40b5aa
mov eax, dword [esi + 0x104]
test eax, eax
jle 0x40b59e
mov edx, ecx
sub edx, dword [esp + 0x38]
cmp edx, eax
jle 0x40b59e
mov edx, dword [esi + 4]
add edx, eax
mov dword [esi + 0xc], edx
jmp 0x40b5aa
mov eax, dword [esi + 4]
sub eax, dword [esp + 0x38]
add eax, ecx
mov dword [esi + 0xc], eax
cmp ecx, dword [esi + 0xc]
jle 0x40b695
xor edi, edi
cmp dword [esi + 0xbc], edi
jle 0x40b691
or edi, edi
jne 0x40b5d6
push 0x4142f8
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 0x40b64c
push edi
push 0
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esi + 0xa8]
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], 4
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 0x4142f8
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x60]
push eax
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
mov byte [esp + 0xa4], 5
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_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 0x40b65e
lea eax, [esp + 0x78]
mov edx, dword [esp + 0x88]
push 0x400
lea ecx, [esp + 0x3c]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x40]
sub eax, 0xfffffff0
cmp eax, dword [esi + 0xc]
jg 0x40b691
inc edi
cmp edi, dword [esi + 0xbc]
jl 0x40b5c1
mov edi, dword [esp + 0x48]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 8]
sub eax, ecx
sub eax, edi
mov dword [esp + 0x2c], edx
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
push 0
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x34], ecx
call dword [sym.imp.USER32.dll_InflateRect]
cmp dword [esp + 0x8c], 8
mov eax, dword [esp + 0x78]
jae 0x40b6dc
lea eax, [esp + 0x78]
mov edi, dword [esi + 0xfc]
push edi
mov ecx, dword [esp + 0x8c]
lea edx, [esp + 0x28]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [esp + 0x54]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x4c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x34]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esp + 0x50]
push edx
push ebx
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 edx, dword [esp + 0x98]
mov dword fs:[0], edx
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0041045c
mov esp, ebp
pop ebp
ret 4