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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x694
mov eax, dword [0x1023c014]
xor eax, esp
mov dword [esp + 0x690], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
mov edi, dword [ebp + 0x14]
lea esi, [eax + 0x54]
mov dword [esp + 0x18], eax
push esi
lea eax, [esp + 0x64]
mov dword [esp + 0x28], ebx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x68]
mov edx, dword [esi + 8]
sub eax, 4
mov ecx, dword [esp + 0x60]
sub edx, eax
sub edx, dword [esi]
add ecx, 4
mov esi, dword [esp + 0x18]
add edx, ecx
add dword [esp + 0x64], 2
sub dword [esp + 0x6c], 2
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0x80]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x2c], 0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
cmp eax, edi
jbe 0x1008d8f4
mov edi, dword [ecx + edi*4]
mov dword [esp + 0x20], edi
test edi, edi
je 0x1008d8db
movzx ecx, word [edi]
test cx, cx
jne 0x1008d281
cmp dword [edi + 0x628], 0
je 0x1008d8db
mov eax, dword [edi + 0x628]
mov dword [esp + 0x72], 0
test eax, eax
je 0x1008d2aa
mov word [esp + 0x70], ax
shr eax, 0x10
mov word [esp + 0x72], ax
mov dword [esp + 0x14], 2
jmp 0x1008d2b7
mov word [esp + 0x70], cx
mov dword [esp + 0x14], 1
push 0x20a
lea eax, [esp + 0x48c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esi + 0x8c]
mov ecx, ebx
push eax
call dword [sym.imp.HncBaseDraw.dll_public:_class_CHncFont____thiscall_CHncDrawContext::SelectObject_class_CHncFont__]
push 0
push dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov ecx, ebx
lea eax, [esp + 0x78]
push eax
push 0
push 4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.HncBaseDraw.dll_public:_int___thiscall_CHncDrawContext::ExtTextOutW_int__int__unsigned_int__struct_tagRECT_const___unsigned_short_int_const___unsigned_int__int_const__]
cmp dword [ebp + 0x1c], 0
lea ecx, [esi + 0xd8]
mov edx, dword [sym.imp.HncFoundation.dll_public:_int___thiscall_CHncStringW::Concat_unsigned_short_int_const__]
mov dword [esp + 0x1c], ecx
je 0x1008d338
mov eax, dword [ecx]
cmp dword [eax - 8], 0
je 0x1008d32f
push 0x101d4130
call edx
mov edx, dword [sym.imp.HncFoundation.dll_public:_int___thiscall_CHncStringW::Concat_unsigned_short_int_const__]
lea ecx, [esi + 0xd8]
lea eax, [esp + 0x70]
push eax
call edx
jmp 0x1008d33c
mov dword [esp + 0x1c], ecx
xor eax, eax
lea ecx, [edi + 0x41c]
cmp dword [edi + 4], eax
cmovne eax, ecx
test eax, eax
jne 0x1008d3f6
lea eax, [esp + 0x30]
mov ecx, ebx
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.HncBaseDraw.dll_public:_int___thiscall_CHncDrawContext::GetTextExtentPointW_unsigned_short_int_const___int__struct_tagSIZE__]
mov eax, dword [esp + 0x30]
mov ecx, ebx
mov edi, dword [ebp + 0xc]
add eax, 6
push dword [esp + 0x10]
add edi, eax
call dword [sym.imp.HncBaseDraw.dll_public:_class_CHncFont____thiscall_CHncDrawContext::SelectObject_class_CHncFont__]
lea eax, [esi + 0x90]
mov ecx, ebx
push eax
call dword [sym.imp.HncBaseDraw.dll_public:_class_CHncFont____thiscall_CHncDrawContext::SelectObject_class_CHncFont__]
push 0
mov ecx, ebx
mov dword [esp + 0x40], eax
call dword [sym.imp.HncBaseDraw.dll_public:_unsigned_long_int___thiscall_CHncDrawContext::SetTextColor_unsigned_long_int_]
push 0x101d987c
lea eax, [esp + 0x48c]
push 0x105
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea ecx, [esp + 0x494]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008d3c2
push 0
sub ecx, edx
lea eax, [esp + 0x48c]
sar ecx, 1
push ecx
push eax
mov eax, dword [ebp + 0x10]
mov ecx, ebx
push 0
push 4
add eax, 6
push eax
mov eax, dword [sym.imp.HncBaseDraw.dll_public:_int___thiscall_CHncDrawContext::ExtTextOutW_int__int__unsigned_int__struct_tagRECT_const___unsigned_short_int_const___unsigned_int__int_const__]
push edi
call eax
jmp 0x1008d82c
push 0x208
lea eax, [esp + 0x284]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x78]
push 0x208
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movzx eax, word [edi + 2]
add esp, 0xc
push dword [edi + 4]
push eax
lea eax, [esp + 0x288]
push str.___c_
push eax
call fcn.1002c230
xor ecx, ecx
lea eax, [edi + 8]
cmp dword [edi + 4], ecx
cmovne ecx, eax
lea eax, [esp + 0x88]
push ecx
push 0x101d5178
push eax
call fcn.1002c230
lea ecx, [esp + 0x29c]
add esp, 0x1c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008d466
sub ecx, edx
lea esi, [esp + 0x78]
sar ecx, 1
mov dword [esp + 0x28], ecx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1008d480
sub esi, ecx
sar esi, 1
cmp dword [ebp + 0x1c], 0
je 0x1008d4a1
mov ecx, dword [esp + 0x1c]
push 0x20
call dword [sym.imp.HncFoundation.dll_public:_int___thiscall_CHncStringW::Concat_unsigned_short_int_]
lea eax, [esp + 0x30]
mov ecx, ebx
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.HncBaseDraw.dll_public:_int___thiscall_CHncDrawContext::GetTextExtentPointW_unsigned_short_int_const___int__struct_tagSIZE__]
mov eax, dword [esp + 0x30]
mov ecx, ebx
mov edi, dword [ebp + 0xc]
add eax, 6
push dword [esp + 0x10]
add edi, eax
call dword [sym.imp.HncBaseDraw.dll_public:_class_CHncFont____thiscall_CHncDrawContext::SelectObject_class_CHncFont__]
mov eax, dword [esp + 0x18]
mov ecx, ebx
add eax, 0x90
push eax
call dword [sym.imp.HncBaseDraw.dll_public:_class_CHncFont____thiscall_CHncDrawContext::SelectObject_class_CHncFont__]
push 0xff
mov ecx, ebx
mov dword [esp + 0x40], eax
call dword [sym.imp.HncBaseDraw.dll_public:_unsigned_long_int___thiscall_CHncDrawContext::SetTextColor_unsigned_long_int_]
mov eax, dword [esp + 0x20]
xor edx, edx
cmp dword [eax + 4], edx
lea ecx, [eax + 0x212]
mov dword [esp + 0x14], ecx
cmovne edx, ecx
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008d511
sub ecx, dword [esp + 0x10]
mov eax, dword [sym.imp.HncBaseDraw.dll_public:_int___thiscall_CHncDrawContext::ExtTextOutW_int__int__unsigned_int__struct_tagRECT_const___unsigned_short_int_const___unsigned_int__int_const__]
push 0
sar ecx, 1
push ecx
push edx
push 0
push 4
push dword [ebp + 0x10]
mov dword [esp + 0x28], ecx
mov ecx, ebx
push edi
call eax
cmp dword [ebp + 0x1c], 0
je 0x1008d55a
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp dword [ecx + 4], eax
mov ecx, dword [esp + 0x1c]
cmovne eax, dword [esp + 0x14]
push eax
call dword [sym.imp.HncFoundation.dll_public:_int___thiscall_CHncStringW::Concat_unsigned_short_int_const__]
lea eax, [esp + 0x50]
xorps xmm0, xmm0
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0x288]
movlpd qword [esp + 0x58], xmm0
push eax
mov ecx, ebx
movlpd qword [esp + 0x64], xmm0
movlpd qword [esp + 0x54], xmm0
call dword [sym.imp.HncBaseDraw.dll_public:_int___thiscall_CHncDrawContext::GetTextExtentPointW_unsigned_short_int_const___int__struct_tagSIZE__]
lea eax, [esp + 0x58]
mov ecx, ebx
push eax
push esi
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.HncBaseDraw.dll_public:_int___thiscall_CHncDrawContext::GetTextExtentPointW_unsigned_short_int_const___int__struct_tagSIZE__]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
xor eax, eax
cmp dword [ecx + 4], eax
mov ecx, ebx
cmovne eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.HncBaseDraw.dll_public:_int___thiscall_CHncDrawContext::GetTextExtentPointW_unsigned_short_int_const___int__struct_tagSIZE__]
mov edx, dword [esp + 0x18]
cmp dword [edx + 0xe4], 0
je 0x1008d5f4
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x68]
add ecx, edi
add ecx, dword [esp + 0x50]
add ecx, dword [esp + 0x48]
sub eax, dword [esp + 0x60]
cmp ecx, eax
jle 0x1008d5f4
mov eax, dword [edx + 0x94]
add eax, dword [ebp + 0x10]
mov dword [esp + 0x10], edi
jmp 0x1008d601
mov eax, dword [esp + 0x48]
add eax, edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
push 0xff0000
mov ecx, ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.HncBaseDraw.dll_public:_unsigned_long_int___thiscall_CHncDrawContext::SetTextColor_unsigned_long_int_]
push 0
push dword [esp + 0x2c]
lea eax, [esp + 0x288]
mov ecx, ebx
push eax
push 0
push 4
push dword [esp + 0x28]
push dword [esp + 0x28]
call dword [sym.imp.HncBaseDraw.dll_public:_int___thiscall_CHncDrawContext::ExtTextOutW_int__int__unsigned_int__struct_tagRECT_const___unsigned_short_int_const___unsigned_int__int_const__]
cmp dword [ebp + 0x1c], 0
je 0x1008d64c
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x280]
push eax
call dword [sym.imp.HncFoundation.dll_public:_int___thiscall_CHncStringW::Concat_unsigned_short_int_const__]
push 0x808080
mov ecx, ebx
call dword [sym.imp.HncBaseDraw.dll_public:_unsigned_long_int___thiscall_CHncDrawContext::SetTextColor_unsigned_long_int_]
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x50]
cmp word [esp + 0x78], 0
mov dword [esp + 0x10], eax
je 0x1008d6ac
lea eax, [esp + 0x40]
mov ecx, ebx
push eax
push esi
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.HncBaseDraw.dll_public:_int___thiscall_CHncDrawContext::GetTextExtentPointW_unsigned_short_int_const___int__struct_tagSIZE__]
push 0
push esi
lea eax, [esp + 0x80]
mov ecx, ebx
push eax
push 0
push 2
push dword [esp + 0x28]
push dword [esp + 0x28]
call dword [sym.imp.HncBaseDraw.dll_public:_int___thiscall_CHncDrawContext::ExtTextOutW_int__int__unsigned_int__struct_tagRECT_const___unsigned_short_int_const___unsigned_int__int_const__]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x10]
jmp 0x1008d6ae
xor ecx, ecx
cmp dword [ebp + 0x18], 0
mov esi, dword [esp + 0x18]
jne 0x1008d6d2
sub ecx, dword [ebp + 0xc]
add ecx, eax
mov eax, dword [esi + 0xcc]
add ecx, dword [esp + 0x38]
cmp eax, ecx
cmovge ecx, eax
mov dword [esi + 0xcc], ecx
cmp dword [ebp + 0x1c], 0
je 0x1008d6f6
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.HncFoundation.dll_public:_int___thiscall_CHncStringW::Concat_unsigned_short_int_const__]
mov ecx, dword [esp + 0x1c]
push 0x101d4130
call dword [sym.imp.HncFoundation.dll_public:_int___thiscall_CHncStringW::Concat_unsigned_short_int_const__]
push 9
mov ecx, ebx
call dword [sym.imp.HncBaseDraw.dll_public:_unsigned_long_int___thiscall_CHncDrawContext::SetTextColor_unsigned_long_int_]
mov ecx, dword [esp + 0x20]
xor ebx, ebx
mov edx, dword [ecx + 4]
lea eax, [ecx + 0x41c]
mov dword [esp + 0x1c], eax
test edx, edx
lea eax, [ecx + 0x41c]
cmovne ebx, eax
lea eax, [ebx + 2]
mov dword [esp + 0x28], eax
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x1008d725
sub ebx, dword [esp + 0x28]
sar ebx, 1
cmp dword [esi + 0xe4], 0
mov dword [esp + 0x28], ebx
je 0x1008d87c
mov eax, dword [esp + 0x68]
xor ebx, ebx
test edx, edx
mov dword [esp + 0x10], edi
lea edx, [ecx + 0x41c]
mov esi, edi
cmovne ebx, edx
sub eax, dword [esp + 0x60]
add eax, dword [ebp + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
sub eax, dword [ebp + 0x10]
cmp word [ebx], 0
mov dword [esp + 0x2c], eax
je 0x1008d801
nop
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x30]
push eax
push 1
push ebx
call dword [sym.imp.HncBaseDraw.dll_public:_int___thiscall_CHncDrawContext::GetTextExtentPointW_unsigned_short_int_const___int__struct_tagSIZE__]
mov ecx, dword [esp + 0x10]
cmp esi, ecx
je 0x1008d7c6
mov eax, dword [esp + 0x30]
add eax, esi
cmp eax, dword [esp + 0x40]
jle 0x1008d7c6
mov eax, dword [esp + 0x18]
cmp edi, esi
mov edx, dword [esp + 0x2c]
cmovl edi, esi
add edx, 6
mov esi, ecx
mov eax, dword [eax + 0x94]
add edx, eax
mov dword [esp + 0x2c], edx
jmp 0x1008d7f3
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
add eax, dword [ebp + 0x10]
push 0
add eax, dword [ecx + 0x94]
mov ecx, dword [esp + 0x28]
push 1
push ebx
push 0
push 4
push eax
push esi
call dword [sym.imp.HncBaseDraw.dll_public:_int___thiscall_CHncDrawContext::ExtTextOutW_int__int__unsigned_int__struct_tagRECT_const___unsigned_short_int_const___unsigned_int__int_const__]
add ebx, 2
add esi, dword [esp + 0x30]
cmp word [ebx], 0
jne 0x1008d780
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
test ebx, ebx
je 0x1008d828
cmp dword [ebp + 0x1c], 0
je 0x1008d828
xor eax, eax
cmp dword [ecx + 4], eax
lea ecx, [esi + 0xd8]
cmovne eax, edx
push eax
call dword [sym.imp.HncFoundation.dll_public:_int___thiscall_CHncStringW::Concat_unsigned_short_int_const__]
mov ebx, dword [esp + 0x24]
cmp dword [ebp + 0x18], 0
jne 0x1008d84c
mov edx, dword [esp + 0x38]
sub edx, dword [ebp + 0xc]
mov eax, dword [esi + 0xcc]
add edx, edi
cmp eax, edx
cmovge edx, eax
mov dword [esi + 0xcc], edx
push dword [esp + 0x3c]
mov ecx, ebx
call dword [sym.imp.HncBaseDraw.dll_public:_class_CHncFont____thiscall_CHncDrawContext::SelectObject_class_CHncFont__]
mov eax, dword [esi + 0x94]
mov ecx, dword [esp + 0x2c]
lea eax, [ecx + eax*2]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x690]
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 0x18
test ebx, ebx
je 0x1008d828
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x30]
push eax
xor eax, eax
test edx, edx
push ebx
cmovne eax, dword [esp + 0x24]
push eax
call dword [sym.imp.HncBaseDraw.dll_public:_int___thiscall_CHncDrawContext::GetTextExtentPointW_unsigned_short_int_const___int__struct_tagSIZE__]
mov ecx, dword [esp + 0x20]
xor eax, eax
push 0
push ebx
cmp dword [ecx + 4], eax
mov ecx, dword [esp + 0x2c]
cmovne eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push 0
push 4
mov eax, dword [eax + 0x94]
add eax, dword [esp + 0x28]
push eax
push edi
call dword [sym.imp.HncBaseDraw.dll_public:_int___thiscall_CHncDrawContext::ExtTextOutW_int__int__unsigned_int__struct_tagRECT_const___unsigned_short_int_const___unsigned_int__int_const__]
add edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
jmp 0x1008d805
mov ecx, dword [esp + 0x69c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 0x18
call fcn.10014370
int3