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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
push ebx
mov ebx, eax
cmp dword [ebx + 0x68], 4
push esi
push edi
jne 0x416ce7
xor edx, edx
cmp dword [ebx + 0x6c], edx
je 0x416be8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
xor ecx, ecx
cmp dword [ebx + 0x70], edx
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 + 0x18], ecx
xor edx, edx
jmp 0x416c02
cmp dword [ebx + 0x70], edx
je 0x416bfb
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
sub eax, dword [ebx + 0x74]
mov dword [esp + 0x18], eax
jmp 0x416c05
mov eax, dword [ebx + 0x74]
mov dword [esp + 0x18], eax
mov esi, dword [ebp + 0xc]
cmp dword [ebx + 0x84], edx
je 0x416c35
mov eax, dword [esi]
xor ecx, ecx
cmp dword [ebx + 0x88], edx
mov esi, dword [ebp + 0xc]
sete cl
cdq
sub eax, edx
sar eax, 1
lea ecx, [ecx + ecx - 1]
imul ecx, dword [ebx + 0x8c]
add ecx, eax
mov edi, ecx
xor edx, edx
jmp 0x416c4d
cmp dword [ebx + 0x88], edx
je 0x416c47
mov edi, dword [esi]
sub edi, dword [ebx + 0x8c]
jmp 0x416c4d
mov edi, dword [ebx + 0x8c]
cmp dword [ebx + 0x78], edx
je 0x416c76
mov eax, dword [esi + 4]
mov esi, dword [ebp + 0xc]
xor ecx, ecx
cmp dword [ebx + 0x7c], edx
cdq
sete cl
sub eax, edx
sar eax, 1
lea ecx, [ecx + ecx - 1]
imul ecx, dword [ebx + 0x80]
add ecx, eax
xor edx, edx
jmp 0x416c8c
cmp dword [ebx + 0x7c], edx
je 0x416c86
mov ecx, dword [esi + 4]
sub ecx, dword [ebx + 0x80]
jmp 0x416c8c
mov ecx, dword [ebx + 0x80]
cmp dword [ebx + 0x90], edx
je 0x416cbe
xor eax, eax
cmp dword [ebx + 0x94], edx
sete al
lea eax, [eax + eax - 1]
imul eax, dword [ebx + 0x98]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 4]
cdq
sub eax, edx
mov edx, dword [esp + 0x38]
sar eax, 1
add eax, edx
jmp 0x416cd7
cmp dword [ebx + 0x94], edx
je 0x416cd1
mov eax, dword [esi + 4]
sub eax, dword [ebx + 0x98]
jmp 0x416cd7
mov eax, dword [ebx + 0x98]
sub edi, dword [esp + 0x18]
sub eax, ecx
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x4170a0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push dword [ebx + 0x4c]
and dword [esp + 0x14], 0
lea esi, [ebx + 0x14]
lea edi, [esp + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x3c], eax
movsd dword es:[edi], dword [esi]
call fcn.004140b8
pop ecx
push dword [esp + 0x38]
mov esi, eax
mov dword [esp + 0x58], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp dword [ebp + 8], 0
mov dword [esp + 0x14], eax
je 0x416d43
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
add ecx, dword [esp + 0x18]
mov eax, dword [eax + 4]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x58]
test eax, eax
jne 0x416d8c
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x416d8c
mov edi, ebx
mov edi, dword [edi + 8]
test edi, edi
je 0x416d90
push edi
call fcn.004231a4
mov edi, eax
test edi, edi
pop ecx
je 0x416d90
cmp dword [edi + 0x58], 0
jne 0x416fc5
push dword [edi + 0x4c]
call fcn.004140b8
cmp dword [eax + 0x20], 0
pop ecx
je 0x416d53
push dword [edi + 0x4c]
call fcn.004140b8
mov eax, dword [eax + 0x20]
pop ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x34]
and eax, 1
cmp al, 1
jne 0x416dd6
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x416dd2
mov edi, ebx
mov edi, dword [edi + 8]
test edi, edi
je 0x416dd6
push edi
call fcn.004231a4
mov edi, eax
test edi, edi
pop ecx
je 0x416dd6
push dword [edi + 0x4c]
call fcn.004140b8
cmp dword [eax + 0x24], 0
pop ecx
je 0x416da3
push dword [edi + 0x4c]
call fcn.004140b8
mov eax, dword [eax + 0x24]
pop ecx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
jne 0x416de9
push 0
call fcn.0040bd36
pop ecx
mov dword [esp + 0x10], eax
push dword [esp + 0x10]
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x2c]
neg eax
push eax
mov eax, dword [esi + 0x28]
neg eax
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esi + 0x1c]
and eax, 0xfffffff0
test al, 0x10
je 0x416e24
mov dword [esp + 0x24], 0x7fff
mov ecx, dword [ebx + 0x28]
xor edi, edi
cmp dword [ecx - 0xc], edi
je 0x41703d
cmp dword [esi + 0x48], edi
je 0x417020
lea eax, [esp + 0x3c]
push eax
push edi
push edi
mov dword [esp + 0x48], edi
call sub.gdiplus.dll_GdipCreateStringFormat
push dword [esp + 0x14]
lea esi, [esp + 0x5c]
mov dword [esp + 0x44], eax
call fcn.00422ee5
mov eax, dword [0x512bd4]
mov ecx, 0x512bd4
call dword [eax + 0xc]
add eax, 0x10
push 0x58
mov dword [esp + 0x48], eax
lea eax, [esp + 0x70]
push edi
push eax
mov dword [esp + 0x74], edi
call fcn.00489500
lea eax, [esp + 0x34]
add esp, 0xc
push eax
lea edi, [esp + 0x48]
call fcn.004170ab
pop ecx
lea eax, [esp + 0x68]
push eax
push 0x5c
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x18]
lea esi, [esp + 0x68]
call fcn.004170cc
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
push dword [ebx + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
fild dword [esp + 0x14]
sub eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
fstp dword [esp + 0x4c]
fild dword [esp + 0x14]
fstp dword [esp + 0x50]
call fcn.004231a4
pop ecx
mov ecx, eax
xor esi, esi
cmp ecx, esi
je 0x416f30
lea eax, [esp + 0x28]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.00421a1d
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
fild dword [esp + 0x10]
sub eax, dword [esp + 0x2c]
fstp dword [esp + 0x48]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp + 0x4c]
push esi
push dword [esp + 0x40]
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, esi
je 0x416f42
mov dword [esp + 0x40], eax
mov ebx, dword [ebx + 0x28]
fldz
push dword [ebx - 0xc]
fst dword [esp + 0x30]
lea eax, [esp + 0x5c]
fstp dword [esp + 0x2c]
push ebx
push eax
lea edi, [esp + 0x34]
lea ecx, [esp + 0x48]
lea eax, [esp + 0x54]
lea edx, [esp + 0x6c]
call fcn.004143a1
fld dword [esp + 0x28]
fld dword [esp + 0x28]
call fcn.004c83d0
mov dword [esp + 0x10], eax
fisub dword [esp + 0x10]
fldz
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
fld1
jp 0x416f9b
fld dword [esp + 0x28]
fadd st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x2c]
fld dword [esp + 0x2c]
call fcn.004c83d0
mov dword [esp + 0x10], eax
fisub dword [esp + 0x10]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x416fcd
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
jmp 0x416fcf
mov eax, dword [edi + 0x58]
jmp 0x416d8c
fstp st(0)
fild dword [esp + 0x18]
fadd dword [esp + 0x28]
call fcn.004c83d0
fild dword [esp + 0x1c]
mov dword [esp + 0x20], eax
fadd dword [esp + 0x2c]
call fcn.004c83d0
push dword [esp + 0x60]
mov dword [esp + 0x28], eax
call sub.gdiplus.dll_GdipDeleteFont
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
call fcn.00401023
push dword [esp + 0x58]
call sub.gdiplus.dll_GdipDeleteGraphics
push dword [esp + 0x3c]
call sub.gdiplus.dll_GdipDeleteStringFormat
mov esi, dword [esp + 0x54]
xor edi, edi
jmp 0x41704d
or eax, 0x400
push eax
lea eax, [esp + 0x1c]
push eax
mov ebx, ecx
push dword [ebx - 0xc]
push ebx
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0x41704d
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x28]
push dword [esp + 0x50]
add eax, eax
push dword [esp + 0x18]
mov ecx, eax
sub ecx, dword [esp + 0x20]
mov eax, dword [ebp + 0xc]
add ecx, dword [esp + 0x28]
mov dword [eax], ecx
mov ecx, dword [esi + 0x2c]
add ecx, ecx
sub ecx, dword [esp + 0x24]
add ecx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x38]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [esp + 0x14], edi
je 0x4170a0
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 8