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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x4e3018]
xor eax, esp
mov dword [esp + 0xa4], eax
movups xmm0, xmmword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
sub esp, 0x10
mov dword [esp + 0x18], esi
mov eax, esp
mov edi, ecx
mov dword [esp + 0x28], edi
push esi
movups xmmword [eax], xmm0
call fcn.00417c60
mov ecx, dword [edi + 0x120]
test ecx, ecx
je 0x41f5bf
cmp dword [edi + 0xfc], 0
jne 0x41f596
mov eax, dword [edi + 0x170]
jmp 0x41f5bc
mov eax, dword [edi + 0x124]
cmp eax, 1
jne 0x41f5a9
mov eax, dword [edi + 0x168]
jmp 0x41f5bc
cmp eax, 2
jne 0x41f5b6
mov eax, dword [edi + 0x16c]
jmp 0x41f5bc
mov eax, dword [edi + 0x164]
mov dword [ecx + 0x3c], eax
cmp dword [edi + 0x128], 0
je 0x41f9a4
lea ecx, [esp + 0x40]
call fcn.0042f750
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [edi + 0x178], 0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x30], 0xffffffff
je 0x41f685
mov eax, dword [edi + 0x134]
xor esi, esi
mov ecx, dword [edi + 0x138]
mov dword [esp + 0x1c], eax
sub ecx, eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xc], eax
je 0x41f685
mov ecx, dword [edi + 0x134]
add ecx, 8
lea edx, [esi + 1]
cmp edx, eax
jae 0x41f64a
mov eax, dword [ecx]
cmp eax, dword [ecx + 0x2c]
jle 0x41f646
cmp esi, 3
jg 0x41f655
mov eax, dword [esp + 0xc]
mov esi, edx
add ecx, 0x2c
cmp esi, eax
jb 0x41f633
jmp 0x41f685
mov ecx, dword [esp + 0x1c]
mov edi, esi
imul eax, esi, 0x2c
add ecx, 8
xor edx, edx
add ecx, eax
xor esi, esi
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
add esi, eax
cmp esi, 9
jg 0x41f67d
inc edx
dec edi
sub ecx, 0x2c
cmp edx, 3
jl 0x41f667
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + 0x138]
mov eax, 0x2e8ba2e9
sub ecx, dword [edi + 0x134]
xor esi, esi
imul ecx
mov dword [esp + 0x10], 0
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jle 0x41f8aa
mov dword [esp + 0x34], 0xd800
mov edx, dword [edi + 0x134]
mov eax, esi
mov dword [esp + 0x38], eax
imul eax, eax, 0x2c
mov dword [esp + 0x2c], esi
inc esi
mov dword [esp + 0x28], esi
mov dword [esp + 0xc], 1
mov dword [esp + 0x20], eax
movzx eax, word [edx + eax + 4]
mov ecx, eax
mov word [esp + 0x10], ax
cmp ax, word [esp + 0x34]
jb 0x41f73e
mov eax, 0xdfff
cmp cx, ax
ja 0x41f73e
mov eax, 0xdc00
cmp cx, ax
jae 0x41f73e
cmp esi, dword [esp + 0x14]
jge 0x41f73e
imul eax, esi, 0x2c
mov ecx, 0x3ff
movzx eax, word [eax + edx + 4]
mov word [esp + 0x12], ax
add eax, 0x2400
cmp ax, cx
ja 0x41f737
mov dword [esp + 0xc], 2
jmp 0x41f73e
xor eax, eax
mov word [esp + 0x12], ax
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp dword [edx + ecx + 0x28], eax
je 0x41f750
mov eax, dword [edx + ecx + 0x18]
jmp 0x41f75d
mov ecx, dword [edi + 0x120]
test ecx, ecx
je 0x41f75d
mov eax, dword [ecx + 0x3c]
mov esi, dword [esp + 8]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [edi + 0x134]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [ecx + eax + 0x1c]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x41f797
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
xor ecx, ecx
mov dword [esp + 0x74], ecx
mov eax, dword [edi + 0x120]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x41f7a9
mov eax, dword [eax + 0x3c]
jmp 0x41f7ae
mov eax, 0xc
mov dword [esp + 0x7c], eax
test ecx, ecx
je 0x41f7c5
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x74], 0
lea ecx, [esp + 0x40]
call fcn.0042f8f0
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [edi + 0x134]
xorps xmm0, xmm0
add esi, dword [esp + 0x20]
movups xmmword [esp + 0x90], xmm0
mov dword [esp + 0x1c], eax
mov edx, dword [esi + 8]
add edx, dword [ebp + 0xc]
mov dword [esp + 0x90], edx
mov ecx, dword [esi + 0xc]
add ecx, dword [ebp + 0x10]
mov dword [esp + 0x94], ecx
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 8]
add eax, edx
mov dword [esp + 0x98], eax
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0xc]
add ecx, eax
cmp dword [edi + 0x178], 0
mov dword [esp + 0x9c], ecx
je 0x41f845
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x41f845
mov edx, dword [esp + 0x38]
cmp edx, eax
je 0x41f915
mov esi, dword [esp + 8]
cmp ecx, dword [ebp + 0x18]
jg 0x41f8ae
push 0
lea eax, [esp + 0x94]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [esp + 0x18]
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41f883
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0xc]
cmp eax, 1
jbe 0x41f896
xor ecx, ecx
cmp eax, 1
mov word [esp + 0x12], cx
mov esi, dword [esp + 0x28]
cmovbe esi, dword [esp + 0x2c]
inc esi
cmp esi, dword [esp + 0x14]
jl 0x41f6c0
mov esi, dword [esp + 8]
push dword [esp + 0x3c]
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x40], vtable.CXFont.0
test eax, eax
je 0x41f8d8
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 0x41f8f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x40]
call fcn.0041d680
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.00486999
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [esp + 8]
imul ecx, edx, 0x2c
mov dword [esp + 0x2c], 0x2e
mov dword [esp + 0x14], 3
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x30]
cmp eax, 0xffffffff
jne 0x41f946
mov eax, dword [edi + 0x134]
mov eax, dword [eax + ecx + 8]
add eax, dword [ebp + 0xc]
mov dword [esp + 0x90], eax
add eax, 3
push 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x94]
push eax
push 1
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
sub dword [esp + 0x14], 1
je 0x41f980
mov ecx, dword [esp + 0x28]
jmp 0x41f930
push dword [esp + 0x18]
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41f8ae
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x41f8ae
mov ecx, dword [edi + 0x120]
test ecx, ecx
je 0x41fa13
mov eax, dword [edi + 0x11c]
sub esp, 0x10
mov dword [ecx + 0x4c], eax
mov eax, dword [edi + 0x154]
add eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0x120]
mov dword [esp + 0xa0], eax
mov eax, dword [edi + 0x158]
add eax, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [edi + 0x15c]
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 0x18]
sub eax, dword [edi + 0x160]
mov dword [esp + 0xac], eax
mov eax, esp
movups xmm0, xmmword [esp + 0xa0]
push esi
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.00486999
mov esp, ebp
pop ebp
ret 0x14