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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x4fe0c0]
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.00406130
mov ecx, dword [esi + 0x120]
test ecx, ecx
je 0x4115fb
cmp dword [esi + 0xfc], 0
jne 0x4115d2
mov eax, dword [esi + 0x170]
jmp 0x4115f8
mov eax, dword [esi + 0x124]
cmp eax, 1
jne 0x4115e5
mov eax, dword [esi + 0x168]
jmp 0x4115f8
cmp eax, 2
jne 0x4115f2
mov eax, dword [esi + 0x16c]
jmp 0x4115f8
mov eax, dword [esi + 0x164]
mov dword [ecx + 0x3c], eax
cmp dword [esi + 0x128], 0
je 0x41188a
lea ecx, [esp + 0x40]
call fcn.00427f70
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esi + 0x138]
xor edx, edx
sub ecx, dword [esi + 0x134]
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 0x411823
mov dword [esp + 0x28], 0xd800
mov eax, edx
mov dword [esp + 0x38], edx
imul ecx, eax, 0x2c
inc edx
mov eax, dword [esi + 0x134]
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 0x4116d3
mov eax, 0xdfff
cmp cx, ax
ja 0x4116d3
mov eax, 0xdc00
cmp cx, ax
mov ecx, dword [esi + 0x134]
jae 0x4116d9
cmp edx, dword [esp + 0x20]
jge 0x4116d9
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 0x4116ca
mov dword [esp + 0x1c], 2
jmp 0x4116d9
xor eax, eax
mov word [esp + 0x16], ax
jmp 0x4116d9
mov ecx, dword [esi + 0x134]
mov edx, dword [esp + 0x18]
xor eax, eax
cmp dword [ecx + edx + 0x28], eax
je 0x4116eb
mov eax, dword [ecx + edx + 0x18]
jmp 0x4116f8
mov ecx, dword [esi + 0x120]
test ecx, ecx
je 0x4116f8
mov eax, dword [ecx + 0x3c]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esi + 0x134]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [ecx + eax + 0x1c]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x41172e
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
xor ecx, ecx
mov dword [esp + 0x74], ecx
mov eax, dword [esi + 0x120]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x411740
mov eax, dword [eax + 0x3c]
jmp 0x411745
mov eax, 0xc
mov dword [esp + 0x7c], eax
test ecx, ecx
je 0x41175c
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x74], 0
lea ecx, [esp + 0x40]
call fcn.00428110
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esi + 0x134]
xorps xmm0, xmm0
add edi, dword [esp + 0x18]
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 0x411823
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 0x4117fc
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x1c]
cmp eax, 1
jbe 0x41180f
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 0x411651
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 0x41184d
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 0x411869
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x40]
call fcn.004024e0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.0049cdfb
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esi + 0x120]
test ecx, ecx
je 0x4118f9
mov eax, dword [esi + 0x11c]
sub esp, 0x10
mov dword [ecx + 0x4c], eax
mov eax, dword [esi + 0x154]
add eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x120]
mov dword [esp + 0xa0], eax
mov eax, dword [esi + 0x158]
add eax, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [esi + 0x15c]
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 0x18]
sub eax, dword [esi + 0x160]
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.0049cdfb
mov esp, ebp
pop ebp
ret 0x14