Function at 0x466750
Capabilities:
Access peb ldr_data
Check os version
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x478060
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x496028]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x18]
push eax
call fcn.00472b88
lea ecx, [ebx + 0x1c]
push ecx
lea edx, [esp + 0x38]
push edx
mov esi, eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ebx, dword [ebx + 0x10]
lea ecx, [esp + 0x44]
mov dword [esp + 0x20], ebx
call fcn.00472bee
mov dword [esp + 0xc0], 0
test esi, esi
jne 0x4667c4
xor eax, eax
jmp 0x4667c7
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x48]
call fcn.00472c1e
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], vtable.CBitmap.0
mov byte [esp + 0xc0], 1
mov eax, dword [edi + 0x70]
mov ecx, dword [edi + 0x6c]
push eax
mov eax, dword [esi + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x78]
call fcn.004728a6
mov eax, dword [esp + 0x78]
test eax, eax
je 0x466820
mov ecx, dword [esp + 0x48]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00472c12
test eax, eax
je 0x466837
mov eax, dword [eax + 0x20]
lea ecx, [esp + 0x44]
push ecx
push edi
push 0x2b0f
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x466859
lea edx, [esp + 0x44]
push edx
mov esi, edi
call fcn.00465da0
cmp dword [edi + 0x54], 1
jne 0x466866
mov ebx, 3
jmp 0x466887
cmp dword [edi + 0x68], 0
je 0x466873
mov ebx, 4
jmp 0x466887
test bl, 1
je 0x46687f
mov ebx, 2
jmp 0x466887
xor ebx, ebx
cmp dword [edi + 0x5c], ebx
setne bl
mov eax, dword [edi + 0x5ac]
mov dword [esp + 0x14], ebx
test eax, eax
je 0x466969
xor eax, eax
lea ecx, [edi + 0xf4]
cmp dword [ecx], 0
jne 0x4669d1
inc eax
add ecx, 0xd0
cmp eax, 5
jl 0x4668a1
mov ecx, dword [esp + 0x14]
imul ecx, ecx, 0xd0
cmp dword [edi + 0x6dc], 0
mov ebx, dword [ecx + edi + 0xb8]
lea esi, [ecx + edi]
jne 0x466965
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], 0
call sub.gdiplus.dll_GdipCreateFromHDC
movzx edx, byte [esi + 0x180]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x64], ecx
shl edx, 8
movzx eax, bl
or edx, eax
mov ecx, ebx
shr ecx, 8
movzx eax, cl
shl edx, 8
or edx, eax
shr ebx, 0x10
movzx ecx, bl
shl edx, 8
or edx, ecx
lea eax, [esp + 0x18]
lea esi, [esp + 0x24]
mov dword [esp + 0x18], edx
call fcn.004346b0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
sub eax, edx
push eax
sub ecx, esi
push ecx
push edx
mov edx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x38]
push esi
push edx
call sub.gdiplus.dll_GdipFillRectangleI
push esi
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [esp + 0x64]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
mov ebx, dword [esp + 0x14]
mov eax, dword [edi + 0x6d8]
test eax, eax
je 0x466bfc
imul ebx, ebx, 0xd0
cmp dword [edi + 0x6ac], 0
mov esi, dword [ebx + edi + 0xbc]
jne 0x466bfc
cmp esi, 0xfffffffe
je 0x466bfc
cmp eax, 0xf
jne 0x466ad4
push esi
lea ecx, [esp + 0x70]
call fcn.00472bb8
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x48]
call fcn.00415510
lea ecx, [esp + 0x6c]
mov dword [esp + 0x6c], vtable.CBrush.0
call fcn.00404000
jmp 0x466bfc
cmp dword [edi + 0x6d0], 0
mov edx, dword [esp + 0x20]
mov eax, edi
push edx
je 0x466a5e
mov ecx, dword [edi + 0x5b4]
test ecx, ecx
je 0x466a26
call fcn.00467a40
imul eax, eax, 0xd0
cmp dword [eax + edi + 0x124], 0
jne 0x466a0d
lea eax, [edi + 0x120]
mov esi, eax
jmp 0x466a90
push edx
mov eax, edi
call fcn.00467a40
imul eax, eax, 0xd0
lea eax, [eax + edi + 0x120]
mov esi, eax
jmp 0x466a90
call fcn.00467a40
imul eax, eax, 0xd0
cmp dword [eax + edi + 0x154], 0
jne 0x466a45
lea eax, [edi + 0x150]
mov esi, eax
jmp 0x466a90
push edx
mov eax, edi
call fcn.00467a40
imul eax, eax, 0xd0
lea eax, [eax + edi + 0x150]
mov esi, eax
jmp 0x466a90
call fcn.00467a40
imul eax, eax, 0xd0
cmp dword [eax + edi + 0xf4], 0
jne 0x466a7b
lea esi, [edi + 0xf0]
jmp 0x466a90
push edx
mov eax, edi
call fcn.00467a40
imul eax, eax, 0xd0
lea esi, [eax + edi + 0xf0]
test esi, esi
je 0x466969
cmp dword [esi + 4], 0
je 0x466969
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push eax
mov eax, dword [edi + 0x70]
push ecx
mov ecx, dword [edi + 0x6c]
push eax
mov eax, dword [esp + 0x54]
mov edx, ebx
imul edx, edx, 0xd0
push ecx
push 0
push 0
push eax
mov al, byte [edx + edi + 0x180]
call fcn.004652b0
jmp 0x466969
test al, 1
je 0x466b0c
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x54], eax
inc eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x40]
push esi
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x68], edx
call fcn.00472c36
test byte [edi + 0x6d8], 2
je 0x466b58
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
push esi
lea edx, [esp + 0x80]
mov dword [esp + 0x8c], ecx
dec eax
push edx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x84], eax
call fcn.00472c36
test byte [edi + 0x6d8], 4
je 0x466ba7
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x90], eax
inc eax
mov dword [esp + 0x98], edx
mov dword [esp + 0x98], eax
push esi
lea eax, [esp + 0x90]
mov dword [esp + 0x98], ecx
push eax
lea ecx, [esp + 0x4c]
call fcn.00472c36
test byte [edi + 0x6d8], 8
je 0x466bfc
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xb0], edx
dec edx
sub ecx, 5
mov dword [esp + 0xa8], edx
push esi
lea edx, [esp + 0xa8]
add eax, 5
mov dword [esp + 0xb0], ecx
push edx
lea ecx, [esp + 0x4c]
mov dword [esp + 0xac], eax
call fcn.00472c36
cmp dword [edi + 0x6d0], 0
mov edx, dword [esp + 0x20]
je 0x466c84
mov eax, dword [edi + 0x5b4]
test eax, eax
push edx
mov eax, edi
je 0x466c50
call fcn.00467a40
imul eax, eax, 0xd0
cmp dword [eax + edi + 0x124], 0
jne 0x466c36
lea eax, [edi + 0x120]
jmp 0x466cdf
push edx
mov eax, edi
call fcn.00467a40
imul eax, eax, 0xd0
lea eax, [eax + edi + 0x120]
jmp 0x466cdf
call fcn.00467a40
imul eax, eax, 0xd0
cmp dword [eax + edi + 0x154], 0
jne 0x466c6d
lea eax, [edi + 0x150]
jmp 0x466cdf
push edx
mov eax, edi
call fcn.00467a40
imul eax, eax, 0xd0
lea eax, [eax + edi + 0x150]
jmp 0x466cdf
cmp dword [edi + 0x54], 1
jne 0x466c91
mov eax, 3
jmp 0x466cb2
cmp dword [edi + 0x68], 0
je 0x466c9e
mov eax, 4
jmp 0x466cb2
test dl, 1
je 0x466caa
mov eax, 2
jmp 0x466cb2
xor eax, eax
cmp dword [edi + 0x5c], eax
setne al
imul eax, eax, 0xd0
cmp dword [eax + edi + 0xc4], 0
jne 0x466cca
lea eax, [edi + 0xc0]
jmp 0x466cdf
push edx
mov eax, edi
call fcn.00467a40
imul eax, eax, 0xd0
lea eax, [eax + edi + 0xc0]
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x18], eax
push edx
mov eax, edi
call fcn.00465e00
mov edx, dword [edi + 0x80]
cmp dword [edx - 0xc], 0
je 0x466d32
cmp dword [edi + 0x60], 0
je 0x466d32
mov eax, edx
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x9c]
push edx
push ecx
push eax
mov eax, dword [esp + 0x58]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x4670e8
cmp dword [ecx + 4], 0
je 0x4670e8
mov edx, dword [edi + 0x648]
test dl, 1
je 0x4670e8
cmp edx, 7
jne 0x466e80
fld qword [edi + 0x690]
mov ecx, esi
add eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
mov dword [esp + 0x64], eax
mov eax, dword [edx + 0xc]
fild dword [esp + 0x64]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmulp st(2)
fld qword [0x4885d0]
fmul st(2), st(0)
fxch st(1)
fsubrp st(2)
fxch st(1)
call fcn.00474560
fld qword [edi + 0x690]
mov esi, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x18], eax
fimul dword [esp + 0x18]
mov dword [esp + 0x24], esi
fiadd dword [esp + 0x24]
call fcn.00474560
mov ecx, dword [edi + 0x80]
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x2c], eax
je 0x466e1e
cmp dword [edi + 0x60], 0
je 0x466e1e
mov ebx, dword [edi + 0x58c]
fstp st(0)
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x10]
add ebx, 5
add eax, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x58], eax
jmp 0x4670a0
mov eax, dword [esp + 0x30]
fld qword [edi + 0x698]
mov ecx, dword [esp + 0x14]
add eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x10]
fild dword [esp + 0x18]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmulp st(2)
fxch st(1)
fmulp st(2)
fsubrp st(1)
call fcn.00474560
fld qword [edi + 0x698]
mov edx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x18], eax
fimul dword [esp + 0x18]
mov dword [esp + 0x28], ebx
fiadd dword [esp + 0x28]
call fcn.00474560
mov dword [esp + 0x30], eax
jmp 0x4670a0
mov edx, dword [edi + 0x4c4]
sub edx, 1
je 0x467057
sub edx, 1
je 0x46701e
sub edx, 0xe
jne 0x4670a0
mov ecx, dword [esp + 0x38]
fld qword [edi + 0x698]
mov eax, dword [esp + 0x40]
add eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x10]
fild dword [esp + 0x18]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmulp st(2)
fld qword [0x4885d0]
fmul st(2), st(0)
fxch st(1)
fsubrp st(2)
fxch st(1)
call fcn.00474560
fld qword [edi + 0x698]
mov ebx, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x18], eax
fimul dword [esp + 0x18]
mov dword [esp + 0x28], ebx
fiadd dword [esp + 0x28]
call fcn.00474560
mov ecx, dword [edi + 0x80]
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x30], eax
je 0x466fbf
cmp dword [edi + 0x60], 0
je 0x466fbf
mov edx, dword [esp + 0x14]
fstp st(0)
mov eax, dword [edx + 0xc]
fld qword [edi + 0x690]
fld qword [edi + 0x690]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
mov eax, dword [edi + 0x588]
mov dword [esp + 0x1c], eax
fmulp st(2)
fild dword [esp + 0x6c]
faddp st(2)
fild dword [esp + 0x1c]
faddp st(2)
fimul dword [edi + 0x598]
faddp st(1)
call fcn.00474560
mov ecx, eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
cmp ecx, eax
jle 0x466f81
mov eax, dword [esp + 0x1c]
cdq
sub eax, edx
sar eax, 1
add esi, eax
jmp 0x466f98
mov edx, dword [esp + 0x2c]
lea eax, [edx + esi]
cdq
sub eax, edx
mov esi, eax
mov eax, ecx
cdq
sub eax, edx
sar esi, 1
sar eax, 1
sub esi, eax
mov eax, dword [esp + 0x14]
fld qword [edi + 0x690]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x18], eax
fimul dword [esp + 0x18]
mov dword [esp + 0x24], esi
fiadd dword [esp + 0x24]
call fcn.00474560
jmp 0x467098
mov ecx, dword [esp + 0x2c]
fld qword [edi + 0x690]
lea eax, [ecx + esi]
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
mov dword [esp + 0x64], eax
mov eax, dword [edx + 0xc]
fild dword [esp + 0x64]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmulp st(2)
fxch st(1)
fmulp st(2)
fsubrp st(1)
call fcn.00474560
fld qword [edi + 0x690]
mov esi, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x18], eax
fimul dword [esp + 0x18]
mov dword [esp + 0x24], esi
fiadd dword [esp + 0x24]
call fcn.00474560
jmp 0x46709c
sub eax, dword [edi + 0x590]
mov edx, dword [esp + 0x30]
mov esi, dword [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x2c], eax
lea eax, [edx + ebx]
cdq
sub eax, edx
mov ebx, eax
mov eax, esi
cdq
sub eax, edx
sar ebx, 1
sar eax, 1
sub ebx, eax
add esi, ebx
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x2c]
sub esi, ecx
mov dword [esp + 0x5c], esi
jmp 0x4670a0
mov esi, dword [edi + 0x588]
add esi, dword [esp + 0x34]
cmp dword [edi + 0x6d0], 0
je 0x467072
mov ebx, dword [edi + 0x58c]
jmp 0x467089
mov eax, dword [esp + 0x30]
add eax, ebx
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ecx + 0x10]
cdq
sub eax, edx
sar ebx, 1
sar eax, 1
sub ebx, eax
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
add eax, ebx
mov dword [esp + 0x30], eax
lea eax, [ecx + esi]
mov dword [esp + 0x54], eax
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov dword [edi + 0x6b0], esi
mov dword [edi + 0x6b4], ebx
mov dword [edi + 0x6b8], ecx
mov dword [edi + 0x6bc], eax
mov edx, dword [edx + 0x10]
push edx
mov edx, dword [esp + 0x18]
mov edx, dword [edx + 0xc]
push edx
sub eax, ebx
push eax
mov eax, dword [esp + 0x54]
sub ecx, esi
push ecx
push ebx
push esi
mov esi, dword [esp + 0x2c]
push eax
or al, 0xff
call fcn.004652b0
lea eax, [esp + 0x44]
call fcn.00465c90
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x30]
push eax
push edi
lea ecx, [esp + 0x5c]
call fcn.00465f50
mov ecx, dword [esp + 0x48]
mov edx, dword [edi + 0x70]
mov eax, dword [edi + 0x6c]
push 0xcc0020
push 0
push 0
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [ecx + 0x18]
push eax
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov byte [esp + 0xc0], 0
lea ecx, [esp + 0x74]
mov dword [esp + 0x74], vtable.CBitmap.0
call fcn.00404000
lea ecx, [esp + 0x44]
mov dword [esp + 0xc0], 0xffffffff
call fcn.00472bf4
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4