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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x4f80c0]
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.00406490
mov ecx, dword [esi + 0x154]
test ecx, ecx
je 0x4117ab
cmp dword [esi + 0x100], 0
jne 0x411782
mov eax, dword [esi + 0x1a4]
jmp 0x4117a8
mov eax, dword [esi + 0x158]
cmp eax, 1
jne 0x411795
mov eax, dword [esi + 0x19c]
jmp 0x4117a8
cmp eax, 2
jne 0x4117a2
mov eax, dword [esi + 0x1a0]
jmp 0x4117a8
mov eax, dword [esi + 0x198]
mov dword [ecx + 0x3c], eax
cmp dword [esi + 0x15c], 0
je 0x411a3a
lea ecx, [esp + 0x40]
call fcn.00428a20
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esi + 0x16c]
xor edx, edx
sub ecx, dword [esi + 0x168]
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 0x4119d3
mov dword [esp + 0x28], 0xd800
mov eax, edx
mov dword [esp + 0x38], edx
imul ecx, eax, 0x2c
inc edx
mov eax, dword [esi + 0x168]
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 0x411883
mov eax, 0xdfff
cmp cx, ax
ja 0x411883
mov eax, 0xdc00
cmp cx, ax
mov ecx, dword [esi + 0x168]
jae 0x411889
cmp edx, dword [esp + 0x20]
jge 0x411889
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 0x41187a
mov dword [esp + 0x1c], 2
jmp 0x411889
xor eax, eax
mov word [esp + 0x16], ax
jmp 0x411889
mov ecx, dword [esi + 0x168]
mov edx, dword [esp + 0x18]
xor eax, eax
cmp dword [ecx + edx + 0x28], eax
je 0x41189b
mov eax, dword [ecx + edx + 0x18]
jmp 0x4118a8
mov ecx, dword [esi + 0x154]
test ecx, ecx
je 0x4118a8
mov eax, dword [ecx + 0x3c]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esi + 0x168]
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 0x4118de
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 0x4118f0
mov eax, dword [eax + 0x3c]
jmp 0x4118f5
mov eax, 0xc
mov dword [esp + 0x7c], eax
test ecx, ecx
je 0x41190c
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x74], 0
lea ecx, [esp + 0x40]
call fcn.00428bc0
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esp + 0x18]
xorps xmm0, xmm0
add edi, dword [esi + 0x168]
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 0x4119d3
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 0x4119ac
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x1c]
cmp eax, 1
jbe 0x4119bf
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 0x411801
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 0x4119fd
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 0x411a19
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x40]
call fcn.00402700
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.00498d60
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esi + 0x154]
test ecx, ecx
je 0x411aa9
mov eax, dword [esi + 0x150]
sub esp, 0x10
mov dword [ecx + 0x4c], eax
mov eax, dword [esi + 0x188]
add eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x154]
mov dword [esp + 0xa0], eax
mov eax, dword [esi + 0x18c]
add eax, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [esi + 0x190]
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 0x18]
sub eax, dword [esi + 0x194]
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.00498d60
mov esp, ebp
pop ebp
ret 0x14