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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e0f50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push ebp
mov dword [esp + 0xc], ecx
push esi
push edi
mov ecx, 0x8802b0
mov dword [esp + 0x48], 1
call fcn.0054a8e0
mov esi, eax
xor ebx, ebx
mov dword [esp + 0x68], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 0x5e7c28
lea ecx, [esp + 0x18]
mov dword [esp + 0x148], ebx
call fcn.005b74ed
cmp esi, ebx
mov byte [esp + 0x148], 1
mov dword [esp + 0x4c], ebx
je 0x5218f3
push ebx
mov ecx, esi
call fcn.00547260
mov edi, eax
cmp edi, ebx
je 0x5218f3
jmp 0x521129
xor ebx, ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.005b758f
mov esi, eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x78], esi
call fcn.005b7fc3
lea ecx, [esp + 0x18]
call fcn.005b760c
mov edx, dword [esi + 4]
push 0x96
push 0x96
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x38]
call fcn.005b7f6c
cmp esi, ebx
jne 0x52117b
xor eax, eax
jmp 0x52117e
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x1c]
call fcn.005b75a4
mov ebp, dword [esp + 0x38]
lea eax, [esp + 0x34]
neg eax
sbb eax, eax
and eax, ebp
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.005b76e5
push 0xffffff
lea ecx, [esp + 0x64]
mov dword [esp + 0x78], eax
call fcn.005b807f
lea ecx, [esp + 0x60]
mov byte [esp + 0x148], 2
push ecx
lea ecx, [esp + 0x1c]
call fcn.005b7738
mov edx, dword [esp + 0x1c]
push 0xf00021
push 0x96
push 0x96
push ebx
push ebx
push edx
mov dword [esp + 0x84], eax
call dword [sym.imp.GDI32.dll_PatBlt]
lea ecx, [esp + 0xc0]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0x2710
call fcn.0043e490
mov ecx, dword [edi]
lea edx, [esp + 0xa4]
push edx
mov eax, dword [ecx]
call dword [eax + 0x34]
fld qword [esp + 0xc0]
fsub qword [esp + 0xa4]
fld qword [0x5f3bc0]
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa8]
fdiv st(1)
mov edx, dword [esp + 0xc0]
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0xe0], ecx
mov ecx, dword [esp + 0xac]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0xec], edx
mov edx, dword [esp + 0xb0]
mov dword [esp + 0xf4], ecx
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0xe4], eax
mov dword [esp + 0xf8], edx
mov dword [esp + 0xe8], ecx
fld qword [esp + 0xc8]
fsub qword [esp + 0xac]
fstp qword [esp + 0x2c]
fld qword [0x5f3bc0]
fdiv qword [esp + 0x2c]
fstp qword [esp + 0x3c]
fcom qword [esp + 0x3c]
fnstsw ax
test ah, 0x41
jne 0x521354
fstp st(0)
fld qword [esp + 0x3c]
fxch st(1)
fmul st(1)
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], 0x5e7f28
fsubr qword [0x5f3bb8]
fmul qword [0x5ef0a8]
fstp qword [esp + 0x12c]
fld qword [esp + 0x2c]
fmul st(1)
fsubr qword [0x5f3bb8]
fmul qword [0x5f3bb0]
fstp qword [esp + 0x2c]
fmul qword [0x5f3ba8]
fst qword [esp + 0x3c]
fmul qword [0x5e7c20]
fld st(0)
fmul qword [esp + 0xa4]
fsub qword [esp + 0x12c]
fstp qword [esp + 0x8c]
fmul qword [esp + 0xac]
fsub qword [esp + 0x2c]
fstp qword [esp + 0x94]
push str.Ms_scan_Serif
push 0x20
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x190
push ebx
push ebx
push ebx
push 0xe
mov byte [esp + 0x180], 3
call dword [sym.imp.GDI32.dll_CreateFontW]
push eax
lea ecx, [esp + 0x5c]
call fcn.005b7f6c
lea edx, [esp + 0x58]
lea ecx, [esp + 0x18]
push edx
call fcn.005b7738
mov dword [esp + 0x2c], eax
mov eax, dword [0x87a768]
mov dword [esp + 0x28], eax
fld qword [esp + 0xe4]
fsub qword [esp + 0xf4]
sub esp, 8
lea ecx, [esp + 0x30]
sub esp, 8
mov byte [esp + 0x158], 4
fmul qword [0x5e7c20]
fstp qword [esp + 8]
fld qword [esp + 0xfc]
fsub qword [esp + 0xec]
fmul qword [0x5e7c20]
fstp qword [esp]
push str._.3f_.3fmm
push ecx
call fcn.005ad17a
mov eax, dword [esp + 0x40]
add esp, 0x18
lea edx, [esp + 0x138]
mov ecx, dword [eax - 8]
push edx
push ecx
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ebp, dword [esp + 0x138]
mov eax, 0x96
sub eax, ebp
cdq
sub eax, edx
mov esi, eax
sar esi, 1
jns 0x521495
xor esi, esi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xfc]
push ecx
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x100]
mov eax, dword [esp + 0xfc]
sub ecx, edx
mov edx, dword [esp + 0x104]
sub edx, eax
cmp edx, ecx
jle 0x5215a8
mov eax, dword [esp + 0x14]
lea ecx, [eax + 0x5c]
call fcn.004c4b80
cmp eax, 0xffffffff
je 0x52155d
cmp eax, dword [esp + 0x4c]
jne 0x52155d
push 0xff0000
push 2
push ebx
lea ecx, [esp + 0x88]
call fcn.005b7fd9
lea ecx, [esp + 0x7c]
mov byte [esp + 0x148], 5
push ecx
lea ecx, [esp + 0x1c]
call fcn.005b7738
mov edx, dword [esp + 0x1c]
push 0x95
push 0x95
push 0
push 0
push edx
mov ebx, eax
call dword [sym.imp.GDI32.dll_Rectangle]
push ebx
lea ecx, [esp + 0x1c]
call fcn.005b7738
mov ebx, vtable.CGdiObject.0
mov dword [esp + 0x7c], ebx
lea ecx, [esp + 0x7c]
mov byte [esp + 0x148], 6
call fcn.005b7fc3
mov byte [esp + 0x148], 4
jmp 0x521562
mov ebx, vtable.CGdiObject.0
mov eax, dword [esp + 0x28]
add ebp, esi
mov dword [esp + 0x10c], esi
mov dword [esp + 0x110], 0
mov dword [esp + 0x114], ebp
mov dword [esp + 0x118], 0x10
mov ecx, dword [eax - 8]
lea edx, [esp + 0x10c]
push 4
push edx
push ecx
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x28]
call dword [eax + 0x68]
jmp 0x521608
mov ecx, dword [esp + 0x1c]
push 0x96
push 0x96
push ebx
push ebx
push ecx
call dword [sym.imp.GDI32.dll_Rectangle]
mov eax, dword [esp + 0x28]
add ebp, esi
mov dword [esp + 0x11c], esi
mov dword [esp + 0x120], 0x85
mov dword [esp + 0x124], ebp
mov dword [esp + 0x128], 0x95
mov ecx, dword [eax - 8]
lea edx, [esp + 0x11c]
push 4
push edx
push ecx
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x28]
call dword [eax + 0x68]
mov ebx, vtable.CGdiObject.0
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.005b7738
mov ecx, dword [edi]
call fcn.0054a0f0
test eax, eax
je 0x5216eb
mov edx, dword [esp + 0x4c]
mov ecx, dword [edi]
inc edx
mov dword [esp + 0x4c], edx
call fcn.00549f80
mov ecx, dword [edi]
cmp eax, 0xa
je 0x5216f9
call fcn.00549f70
push eax
mov ecx, 0x8802b0
call fcn.0054ade0
mov esi, eax
mov ecx, dword [esi]
call fcn.0054a830
push eax
push 1
push 0
lea ecx, [esp + 0x90]
call fcn.005b7fd9
mov edx, dword [edi]
mov ecx, dword [esi]
mov byte [esp + 0x148], 7
mov ebp, dword [edx]
call fcn.0054a830
mov ecx, dword [edi]
push eax
call dword [ebp + 0x3c]
lea eax, [esp + 0x84]
lea ecx, [esp + 0x18]
push eax
call fcn.005b7738
mov esi, eax
mov ecx, dword [edi]
push 0x96
lea eax, [esp + 0x90]
push 0x96
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push eax
call dword [edx + 0x28]
push esi
lea ecx, [esp + 0x1c]
call fcn.005b7738
mov dword [esp + 0x84], ebx
lea ecx, [esp + 0x84]
mov byte [esp + 0x148], 8
call fcn.005b7fc3
mov byte [esp + 0x148], 4
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x521728
jmp 0x52172b
call fcn.00549f80
cmp eax, 0xa
jne 0x5216eb
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x8c]
push edi
push ecx
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, ebp
call fcn.00522560
jmp 0x5216ef
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x1c]
push eax
push edx
call fcn.005b76e5
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x18]
push eax
call fcn.005b7738
mov ecx, dword [edi]
call fcn.0054a0f0
test eax, eax
je 0x52189a
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0x5f3b9c
mov ecx, dword [esp + 0x78]
push 0x26
mov byte [esp + 0x14c], 9
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test ah, 1
je 0x5217c8
push 0x408
call fcn.005b449a
mov esi, eax
add esp, 4
lea eax, [esi + 4]
mov word [esi], 0x300
mov ecx, dword [esp + 0x1c]
push eax
push 0xff
push 0
push ecx
call dword [sym.imp.GDI32.dll_GetSystemPaletteEntries]
push esi
mov word [esi + 2], ax
call dword [sym.imp.GDI32.dll_CreatePalette]
push eax
lea ecx, [esp + 0x54]
call fcn.005b7f6c
push esi
call fcn.005b44c3
add esp, 4
push 0x96
lea edx, [esp + 0x54]
push 0x96
push edx
lea eax, [esp + 0x40]
push 0
push eax
mov ecx, ebp
call fcn.005219f0
mov esi, eax
test esi, esi
je 0x521874
mov ecx, dword [0x87a768]
mov dword [esp + 0x2c], ecx
lea edx, [ebp + 0x1f4]
push 0x623524
lea eax, [esp + 0x74]
push edx
push eax
mov byte [esp + 0x154], 0xa
call fcn.005b4a06
mov ecx, dword [esp + 0x48]
mov edx, dword [eax]
push 0x7235b8
push ecx
push edx
lea eax, [esp + 0x38]
push str._s_d_s
push eax
mov byte [esp + 0x15c], 0xb
call fcn.005ad17a
add esp, 0x14
lea ecx, [esp + 0x70]
mov byte [esp + 0x148], 0xa
call fcn.005b4761
mov ecx, dword [esp + 0x2c]
push esi
push ecx
mov ecx, ebp
call fcn.00521bf0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x148], 9
call fcn.005b4761
mov eax, dword [esp + 0x48]
mov dword [esp + 0x50], ebx
inc eax
mov dword [esp + 0x48], eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x148], 0xc
call fcn.005b7fc3
mov byte [esp + 0x148], 4
mov ecx, dword [esp + 0x68]
push 0
push edi
call fcn.00547400
lea ecx, [esp + 0x28]
mov edi, eax
mov byte [esp + 0x148], 3
call fcn.005b4761
mov dword [esp + 0x58], ebx
lea ecx, [esp + 0x58]
mov byte [esp + 0x148], 0xd
call fcn.005b7fc3
mov dword [esp + 0x60], ebx
lea ecx, [esp + 0x60]
mov byte [esp + 0x148], 0xe
call fcn.005b7fc3
test edi, edi
mov byte [esp + 0x148], 1
jne 0x521127
lea ecx, [esp + 0x18]
mov byte [esp + 0x148], 0
call fcn.005b7622
mov dword [esp + 0x34], vtable.CGdiObject.0
lea ecx, [esp + 0x34]
mov dword [esp + 0x148], 0xf
call fcn.005b7fc3
mov ecx, dword [esp + 0x140]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret