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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x68], 4
push esi
push edi
jne 0x419bdf
mov esi, dword [ebp + 0x10]
xor edi, edi
cmp dword [ebx + 0x6c], edi
je 0x419aed
mov eax, dword [esi]
xor ecx, ecx
cmp dword [ebx + 0x70], edi
cdq
sete cl
sub eax, edx
sar eax, 1
lea ecx, [ecx + ecx - 1]
imul ecx, dword [ebx + 0x74]
add ecx, eax
mov dword [esp + 0x50], ecx
jmp 0x419b03
cmp dword [ebx + 0x70], edi
je 0x419afc
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
sub eax, dword [ebx + 0x74]
jmp 0x419aff
mov eax, dword [ebx + 0x74]
mov dword [esp + 0x50], eax
cmp dword [ebx + 0x84], edi
je 0x419b2e
mov eax, dword [esi]
xor ecx, ecx
cmp dword [ebx + 0x88], edi
cdq
sete cl
sub eax, edx
sar eax, 1
lea ecx, [ecx + ecx - 1]
imul ecx, dword [ebx + 0x8c]
add ecx, eax
mov edi, ecx
jmp 0x419b46
cmp dword [ebx + 0x88], edi
je 0x419b40
mov edi, dword [esi]
sub edi, dword [ebx + 0x8c]
jmp 0x419b46
mov edi, dword [ebx + 0x8c]
xor eax, eax
cmp dword [ebx + 0x78], eax
je 0x419b6e
xor ecx, ecx
cmp dword [ebx + 0x7c], eax
mov eax, dword [esi + 4]
sete cl
cdq
sub eax, edx
sar eax, 1
lea ecx, [ecx + ecx - 1]
imul ecx, dword [ebx + 0x80]
add ecx, eax
xor eax, eax
jmp 0x419b84
cmp dword [ebx + 0x7c], eax
je 0x419b7e
mov ecx, dword [esi + 4]
sub ecx, dword [ebx + 0x80]
jmp 0x419b84
mov ecx, dword [ebx + 0x80]
cmp dword [ebx + 0x90], eax
je 0x419bb6
xor edx, edx
cmp dword [ebx + 0x94], eax
mov eax, dword [esi + 4]
sete dl
lea edx, [edx + edx - 1]
imul edx, dword [ebx + 0x98]
mov dword [esp + 0x18], edx
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
add eax, edx
jmp 0x419bcf
cmp dword [ebx + 0x94], eax
je 0x419bc9
mov eax, dword [esi + 4]
sub eax, dword [ebx + 0x98]
jmp 0x419bcf
mov eax, dword [ebx + 0x98]
sub edi, dword [esp + 0x50]
sub eax, ecx
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x419f3f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push dword [ebx + 0x4c]
and dword [esp + 0x10], 0
lea esi, [ebx + 0x14]
lea edi, [esp + 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x1c], eax
movsd dword es:[edi], dword [esi]
call fcn.004295d3
pop ecx
push dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x24], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x14], eax
je 0x419c3b
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, dword [esp + 0x40]
mov eax, dword [eax + 4]
add eax, dword [esp + 0x44]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0x58]
test eax, eax
jne 0x419c84
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x419c84
mov edi, ebx
mov edi, dword [edi + 8]
test edi, edi
je 0x419c88
push edi
call fcn.00416963
mov edi, eax
test edi, edi
pop ecx
je 0x419c88
cmp dword [edi + 0x58], 0
jne 0x419e68
push dword [edi + 0x4c]
call fcn.004295d3
cmp dword [eax + 0x20], 0
pop ecx
je 0x419c4b
push dword [edi + 0x4c]
call fcn.004295d3
mov eax, dword [eax + 0x20]
pop ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x34]
and eax, 1
cmp al, 1
jne 0x419cce
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x419cca
mov edi, ebx
mov edi, dword [edi + 8]
test edi, edi
je 0x419cce
push edi
call fcn.00416963
mov edi, eax
test edi, edi
pop ecx
je 0x419cce
push dword [edi + 0x4c]
call fcn.004295d3
cmp dword [eax + 0x24], 0
pop ecx
je 0x419c9b
push dword [edi + 0x4c]
call fcn.004295d3
mov eax, dword [eax + 0x24]
pop ecx
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
jne 0x419ce1
push 0
call fcn.00429a0d
pop ecx
mov dword [esp + 0xc], eax
push dword [esp + 0xc]
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x2c]
neg eax
push eax
mov eax, dword [esi + 0x28]
neg eax
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esi + 0x1c]
and eax, 0xfffffff0
test al, 0x10
je 0x419d1c
mov dword [esp + 0x4c], 0x7fff
mov ecx, dword [ebx + 0x28]
xor edi, edi
cmp dword [ecx - 0xc], edi
je 0x419edc
cmp dword [esi + 0x48], edi
je 0x419ebf
lea eax, [esp + 0x28]
push eax
push edi
push edi
mov dword [esp + 0x34], edi
call sub.gdiplus.dll_GdipCreateStringFormat
push dword [esp + 0x14]
lea esi, [esp + 0x3c]
mov dword [esp + 0x30], eax
call fcn.00429586
push dword [esp + 0xc]
lea ebx, [esp + 0x20]
push dword [esp + 0x18]
call fcn.0041978d
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov esi, dword [ebp + 8]
push dword [esi + 8]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
fstp dword [esp + 0x34]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp + 0x38]
call fcn.00416963
pop ecx
mov ecx, eax
test ecx, ecx
je 0x419dd0
lea eax, [esp + 0x50]
call fcn.00415ae3
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
fstp dword [esp + 0x30]
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fstp dword [esp + 0x34]
push 0
push dword [esp + 0x2c]
call sub.gdiplus.dll_GdipSetStringFormatAlign
test eax, eax
je 0x419de3
mov dword [esp + 0x2c], eax
mov esi, dword [esi + 0x28]
fldz
push dword [esi - 0xc]
fst dword [esp + 0x14]
lea eax, [esp + 0x3c]
fstp dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x24]
push eax
lea edi, [esp + 0x18]
lea ecx, [esp + 0x34]
lea eax, [esp + 0x3c]
mov edx, esi
call fcn.00419f4a
fld dword [esp + 0xc]
fld dword [esp + 0xc]
call fcn.004d5cb0
mov dword [esp + 0x1c], eax
fisub dword [esp + 0x1c]
fldz
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
fld1
jp 0x419e3e
fld dword [esp + 0xc]
fadd st(1)
fstp dword [esp + 0xc]
fld dword [esp + 0x10]
fld dword [esp + 0x10]
call fcn.004d5cb0
mov dword [esp + 0x1c], eax
fisub dword [esp + 0x1c]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x419e70
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
jmp 0x419e72
mov eax, dword [edi + 0x58]
jmp 0x419c84
fstp st(0)
fild dword [esp + 0x40]
fadd dword [esp + 0xc]
call fcn.004d5cb0
fild dword [esp + 0x44]
mov dword [esp + 0x48], eax
fadd dword [esp + 0x10]
call fcn.004d5cb0
test esi, esi
mov dword [esp + 0x4c], eax
je 0x419ea5
push dword [esi]
call sub.gdiplus.dll_GdipDeleteFont
push esi
call sub.gdiplus.dll_GdipFree
push dword [esp + 0x38]
call sub.gdiplus.dll_GdipDeleteGraphics
push dword [esp + 0x28]
call sub.gdiplus.dll_GdipDeleteStringFormat
mov esi, dword [esp + 0x20]
xor edi, edi
jmp 0x419eec
or eax, 0x400
push eax
lea eax, [esp + 0x44]
push eax
mov ebx, ecx
push dword [ebx - 0xc]
push ebx
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0x419eec
mov eax, dword [esp + 0x40]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x28]
push dword [esp + 0x24]
add eax, eax
push dword [esp + 0x18]
mov ecx, eax
sub ecx, dword [esp + 0x48]
mov eax, dword [ebp + 0x10]
add ecx, dword [esp + 0x50]
mov dword [eax], ecx
mov ecx, dword [esi + 0x2c]
add ecx, ecx
sub ecx, dword [esp + 0x4c]
add ecx, dword [esp + 0x54]
mov dword [eax + 4], ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [esp + 0x14], edi
je 0x419f3f
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc