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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ed95e
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x677000]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov eax, dword [0x677000]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov ecx, dword [0x74e300]
mov ebx, dword [ebp + 8]
mov edx, dword [ecx + 4]
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ecx
test edx, edx
je 0x47b592
mov edi, dword [ecx]
mov esi, dword [ebp + 0xc]
mov ecx, edi
cmp dword [ecx], esi
je 0x47ae66
inc eax
add ecx, 0x28
cmp eax, edx
jb 0x47ae55
jmp 0x47b592
lea eax, [eax + eax*4]
push 0xa
movq xmm0, qword [edi + eax*8]
movq qword [esp + 0x34], xmm0
movq xmm0, qword [edi + eax*8 + 8]
movq qword [esp + 0x3c], xmm0
movq xmm0, qword [edi + eax*8 + 0x10]
movq qword [esp + 0x44], xmm0
movq xmm0, qword [edi + eax*8 + 0x18]
movq qword [esp + 0x4c], xmm0
movq xmm0, qword [edi + eax*8 + 0x20]
xor eax, eax
push str.SCREEN_DPI
lea ecx, [esp + 0x70]
movq qword [esp + 0x58], xmm0
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], 0
mov word [esp + 0x70], ax
call fcn.00406400
mov dword [esp + 0x138], 0
mov ecx, dword [0x74e2f4]
lea eax, [esp + 0x68]
push eax
lea ecx, [ecx + 0xc]
call fcn.00409da0
movsd xmm1, qword [0x646d88]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mov dword [esp + 0x138], 0xffffffff
cmp dword [esp + 0x7c], 8
divsd xmm0, xmm1
movsd qword [esp + 0x24], xmm1
movsd qword [esp + 0x5c], xmm0
jb 0x47af33
push dword [esp + 0x68]
call fcn.0049500b
movsd xmm0, qword [esp + 0x60]
add esp, 4
movd xmm1, dword [esp + 0x38]
cvtdq2pd xmm1, xmm1
push 0xa
mulsd xmm0, xmm1
push str.SCREEN_DPI
lea ecx, [esp + 0x70]
mov dword [esp + 0x84], 7
cvttsd2si eax, xmm0
mov dword [esp + 0x80], 0
mov dword [esp + 0x64], eax
xor eax, eax
mov word [esp + 0x70], ax
call fcn.00406400
mov dword [esp + 0x138], 1
mov ecx, dword [0x74e2f4]
lea eax, [esp + 0x68]
push eax
lea ecx, [ecx + 0xc]
call fcn.00409da0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mov dword [esp + 0x138], 0xffffffff
cmp dword [esp + 0x7c], 8
divsd xmm0, qword [esp + 0x24]
movsd qword [esp + 0x1c], xmm0
jb 0x47afcc
push dword [esp + 0x68]
call fcn.0049500b
movsd xmm0, qword [esp + 0x20]
add esp, 4
movd xmm1, dword [esp + 0x3c]
cvtdq2pd xmm1, xmm1
push 0xa
mulsd xmm1, xmm0
xor eax, eax
push str.SCREEN_DPI
lea ecx, [esp + 0x70]
cvttsd2si edi, xmm1
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], 0
mov word [esp + 0x70], ax
call fcn.00406400
mov dword [esp + 0x138], 2
mov ecx, dword [0x74e2f4]
lea eax, [esp + 0x68]
push eax
lea ecx, [ecx + 0xc]
call fcn.00409da0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mov dword [esp + 0x138], 0xffffffff
cmp dword [esp + 0x7c], 8
divsd xmm0, qword [esp + 0x24]
movsd qword [esp + 0x1c], xmm0
jb 0x47b061
push dword [esp + 0x68]
call fcn.0049500b
movsd xmm0, qword [esp + 0x20]
add esp, 4
movd xmm1, dword [esp + 0x40]
cvtdq2pd xmm1, xmm1
push 0xa
mulsd xmm1, xmm0
xor eax, eax
push str.SCREEN_DPI
lea ecx, [esp + 0x70]
cvttsd2si esi, xmm1
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], 0
mov word [esp + 0x70], ax
call fcn.00406400
mov dword [esp + 0x138], 3
mov ecx, dword [0x74e2f4]
lea eax, [esp + 0x68]
push eax
lea ecx, [ecx + 0xc]
call fcn.00409da0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mov dword [esp + 0x138], 0xffffffff
cmp dword [esp + 0x7c], 8
divsd xmm0, qword [esp + 0x24]
movsd qword [esp + 0x1c], xmm0
jb 0x47b0f0
push dword [esp + 0x68]
call fcn.0049500b
add esp, 4
movd xmm0, dword [esp + 0x44]
cvtdq2pd xmm0, xmm0
push 1
mulsd xmm0, qword [esp + 0x20]
mov ecx, ebx
cvttsd2si eax, xmm0
sub eax, edi
push eax
mov eax, dword [esp + 0x64]
sub esi, eax
push esi
push edi
push eax
call fcn.0049c4ee
mov bl, byte [esp + 0x34]
test bl, 2
je 0x47b3b3
push dword [esp + 0x4c]
lea eax, [esp + 0xb0]
push eax
call fcn.00471e50
push str.CHARSET
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x140], 4
call fcn.00471e50
push 0x58
lea eax, [esp + 0xcc]
push 0
mov byte [esp + 0x140], 5
push eax
mov dword [esp + 0xd0], 0
call fcn.005bb1c0
add esp, 0xc
lea eax, [esp + 0x5c]
push 0
push eax
push 0
push 0x4a
mov dword [esp + 0x6c], 0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
movzx eax, byte [esp + 0xde]
cmp dword [esp + 0x5c], 0
mov ecx, 4
cmovne eax, ecx
cmp dword [esp + 0x50], 0
mov byte [esp + 0xde], al
mov ecx, 0x2bc
mov eax, 0x190
cmovne eax, ecx
mov dword [esp + 0xd4], eax
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa8], 0
call fcn.0049f7f0
test eax, eax
je 0x47b1f9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x47b1fb
xor eax, eax
push eax
lea ecx, [esp + 0x9c]
call fcn.0049cf12
push 0x5a
mov byte [esp + 0x13c], 6
push dword [esp + 0xa4]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x48
push eax
push dword [esp + 0x5c]
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
cmp dword [esp + 0xc0], 8
mov dword [esp + 0xc4], eax
lea eax, [esp + 0xac]
cmovae eax, dword [esp + 0xac]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0xe8]
push 0x20
push eax
call fcn.005b9367
cmp dword [esp + 0x8c], 8
push 0xa
lea eax, [esp + 0x7c]
cmovae eax, dword [esp + 0x7c]
push 0
push eax
call fcn.005b90bf
add esp, 0x1c
mov byte [esp + 0xdb], al
push 8
call fcn.00494fd5
mov edi, eax
add esp, 4
test edi, edi
je 0x47b2a2
mov dword [edi + 4], 0
mov dword [edi], vtable.CFont.0
jmp 0x47b2a4
xor edi, edi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x58]
mov eax, dword [ecx + 0xc]
lea esi, [ecx + 8]
mov dword [esp + 0x58], edi
cmp edx, eax
jae 0x47b2f2
mov edx, dword [esi]
lea ecx, [esp + 0x58]
cmp edx, ecx
mov ecx, dword [esp + 0x14]
ja 0x47b2f2
lea edi, [esp + 0x58]
sub edi, edx
sar edi, 2
cmp eax, dword [esi + 8]
jne 0x47b2e2
push ecx
mov ecx, esi
call fcn.00474ee0
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov eax, dword [esi]
test edx, edx
je 0x47b30c
mov eax, dword [eax + edi*4]
mov dword [edx], eax
jmp 0x47b30c
cmp eax, dword [esi + 8]
jne 0x47b303
push ecx
mov ecx, esi
call fcn.00474ee0
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 4]
test eax, eax
je 0x47b30c
mov dword [eax], edi
add dword [esi + 4], 4
mov eax, dword [ecx + 0xc]
mov esi, dword [eax - 4]
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
mov ecx, esi
call fcn.0049d7e3
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0xc]
mov eax, dword [eax - 4]
test eax, eax
je 0x47b33d
mov eax, dword [eax + 4]
mov esi, dword [esp + 0x18]
push 1
push eax
push 0x30
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x98]
mov byte [esp + 0x138], 5
call fcn.0049d06b
cmp dword [esp + 0x7c], 8
jb 0x47b376
push dword [esp + 0x68]
call fcn.0049500b
add esp, 4
xor eax, eax
mov dword [esp + 0x138], 0xffffffff
cmp dword [esp + 0xc0], 8
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], 0
mov word [esp + 0x68], ax
jb 0x47b3b7
push dword [esp + 0xac]
call fcn.0049500b
add esp, 4
jmp 0x47b3b7
mov esi, dword [esp + 0x18]
test bl, 4
je 0x47b43b
push dword [esp + 0x48]
lea eax, [esp + 0x84]
push eax
call fcn.00471e50
mov dword [esp + 0x138], 7
cmp dword [esp + 0x94], 8
lea eax, [esp + 0x80]
cmovae eax, dword [esp + 0x80]
push eax
mov ecx, esi
call fcn.0049c724
mov dword [esp + 0x138], 0xffffffff
cmp dword [esp + 0x94], 8
jb 0x47b41b
push dword [esp + 0x80]
call fcn.0049500b
add esp, 4
xor eax, eax
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
mov word [esp + 0x80], ax
call fcn.0049f407
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x47b457
push 0x80004005
call fcn.00407a60
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x138], 8
test bl, 0x10
je 0x47b47e
push 5
push str.GREEN
jmp 0x47b498
test bl, 0x20
je 0x47b48c
push 4
push str.BLUE
jmp 0x47b498
test bl, 0x40
je 0x47b4a5
push 4
push str.GRAY
lea ecx, [esp + 0x64]
call fcn.004094e0
mov edi, dword [esp + 0x5c]
call fcn.0049f407
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x47b4c1
push 0x80004005
call fcn.00407a60
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x138], 9
mov eax, dword [esp + 0x34]
test eax, 0x100
je 0x47b4eb
push 5
push str.LARGE
jmp 0x47b509
test eax, 0x200
je 0x47b4fb
push 6
push str.MIDDLE
jmp 0x47b509
test eax, 0x400
je 0x47b516
push 5
push str.SMALL
lea ecx, [esp + 0x1c]
call fcn.004094e0
mov esi, dword [esp + 0x14]
cmp dword [edi - 0xc], 0
je 0x47b54c
cmp dword [esi - 0xc], 0
je 0x47b54c
push 0
push 0x747ad8
push 0x747288
push 0
push dword [esp + 0x28]
call fcn.005d3739
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x47b54c
push esi
push edi
call fcn.0041d3c0
mov dword [ebx + 0x74], eax
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [esp + 0x138], 8
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x47b570
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [esp + 0x138], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x47b592
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret 8