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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x50b0c0]
xor eax, esp
mov dword [esp + 0xa4], eax
movups xmm0, xmmword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x34], edi
mov esi, ecx
push edi
movups xmmword [eax], xmm0
call fcn.0040b4e0
mov ecx, dword [esi + 0x154]
test ecx, ecx
je 0x41672b
cmp dword [esi + 0x100], 0
jne 0x416702
mov eax, dword [esi + 0x1a8]
jmp 0x416728
mov eax, dword [esi + 0x158]
cmp eax, 1
jne 0x416715
mov eax, dword [esi + 0x1a0]
jmp 0x416728
cmp eax, 2
jne 0x416722
mov eax, dword [esi + 0x1a4]
jmp 0x416728
mov eax, dword [esi + 0x19c]
mov dword [ecx + 0x3c], eax
cmp dword [esi + 0x15c], 0
je 0x4169ba
lea ecx, [esp + 0x40]
call fcn.0042d950
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esi + 0x170]
xor edx, edx
sub ecx, dword [esi + 0x16c]
sar ecx, 2
mov dword [esp + 0x3c], eax
imul eax, ecx, 0xba2e8ba3
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], eax
test eax, eax
jle 0x416953
mov dword [esp + 0x28], 0xd800
mov eax, edx
mov dword [esp + 0x38], edx
imul ecx, eax, 0x2c
inc edx
mov eax, dword [esi + 0x16c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], ecx
movzx eax, word [eax + ecx + 4]
mov ecx, eax
mov word [esp + 0x14], ax
cmp ax, word [esp + 0x28]
jb 0x416803
mov eax, 0xdfff
cmp cx, ax
ja 0x416803
mov eax, 0xdc00
cmp cx, ax
mov ecx, dword [esi + 0x16c]
jae 0x416809
cmp edx, dword [esp + 0x20]
jge 0x416809
imul eax, edx, 0x2c
mov edx, 0x3ff
movzx eax, word [eax + ecx + 4]
mov word [esp + 0x16], ax
add eax, 0x2400
cmp ax, dx
ja 0x4167fa
mov dword [esp + 0x1c], 2
jmp 0x416809
xor eax, eax
mov word [esp + 0x16], ax
jmp 0x416809
mov ecx, dword [esi + 0x16c]
mov edx, dword [esp + 0x18]
xor eax, eax
cmp dword [ecx + edx + 0x28], eax
je 0x41681b
mov eax, dword [ecx + edx + 0x18]
jmp 0x416828
mov ecx, dword [esi + 0x154]
test ecx, ecx
je 0x416828
mov eax, dword [ecx + 0x3c]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esi + 0x16c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + ecx + 0x1c]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x41685e
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
xor ecx, ecx
mov dword [esp + 0x74], ecx
mov eax, dword [esi + 0x154]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x416870
mov eax, dword [eax + 0x3c]
jmp 0x416875
mov eax, 0xc
mov dword [esp + 0x7c], eax
test ecx, ecx
je 0x41688c
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x74], 0
lea ecx, [esp + 0x40]
call fcn.0042daf0
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esp + 0x18]
xorps xmm0, xmm0
add edi, dword [esi + 0x16c]
movups xmmword [esp + 0x90], xmm0
mov dword [esp + 0x30], eax
mov edx, dword [edi + 8]
add edx, dword [ebp + 0xc]
mov dword [esp + 0x90], edx
mov ecx, dword [edi + 0xc]
add ecx, dword [ebp + 0x10]
mov dword [esp + 0x94], ecx
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 8]
add eax, edx
mov dword [esp + 0x98], eax
mov eax, dword [edi + 0x14]
sub eax, dword [edi + 0xc]
mov edi, dword [esp + 0x24]
add eax, ecx
mov dword [esp + 0x9c], eax
cmp eax, dword [ebp + 0x18]
jg 0x416953
push 0
lea eax, [esp + 0x94]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [esp + 0x2c]
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x41692c
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x1c]
cmp eax, 1
jbe 0x41693f
xor ecx, ecx
cmp eax, 1
mov word [esp + 0x16], cx
mov edx, dword [esp + 0x34]
cmovbe edx, dword [esp + 0x38]
inc edx
cmp edx, dword [esp + 0x20]
jl 0x416781
push dword [esp + 0x3c]
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x40], vtable.CXFont.0
test eax, eax
je 0x41697d
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x74], 0
mov edx, dword [esp + 0x78]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416999
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x40]
call fcn.00407620
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004a69a0
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esi + 0x154]
test ecx, ecx
je 0x416a29
mov eax, dword [esi + 0x150]
sub esp, 0x10
mov dword [ecx + 0x4c], eax
mov eax, dword [esi + 0x18c]
add eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x154]
mov dword [esp + 0xa0], eax
mov eax, dword [esi + 0x190]
add eax, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [esi + 0x194]
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 0x18]
sub eax, dword [esi + 0x198]
mov dword [esp + 0xac], eax
mov eax, esp
movups xmm0, xmmword [esp + 0xa0]
push edi
movups xmmword [eax], xmm0
call dword [edx + 0x2c]
mov ecx, dword [esp + 0xac]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004a69a0
mov esp, ebp
pop ebp
ret 0x14