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

Disassembly:
push 0xffffffffffffffff
push 0x54518d
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebp
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov esi, dword [0x5c6f44]
mov ecx, 0x5c71bc
call dword [sym.imp.libUI.module_public:_int___thiscall_CDwmApiImpl::IsDwmCompositionEnabled_void_]
mov ecx, dword [esp + 0xb8]
mov edx, dword [ecx + 0x20]
mov edi, eax
lea eax, [esp + 0x4c]
push eax
xor ebp, ebp
push edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], ebp
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x34
call sub.mfc90u.dll_new
add esp, 4
mov dword [esp + 0x40], eax
mov dword [esp + 0xac], ebp
cmp eax, ebp
je 0x4da4c4
push edi
push ebp
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0xc0]
push eax
call fcn.004084d0
mov ebp, eax
mov dword [esp + 0x28], eax
jmp 0x4da4ca
xor ebp, ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0xac], 0xffffffff
mov edx, dword [ebp]
mov eax, dword [edx + 0x24]
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov edx, dword [edx + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0xa8]
push eax
mov ecx, ebp
call edx
push 1
mov ecx, ebp
call sub.mfc90u.dll_CDC::SetBkMode
test edi, edi
je 0x4da53e
mov ecx, dword [esp + 0xb8]
mov edx, dword [ecx + 0x20]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
push eax
push edx
mov ecx, 0x5c71bc
mov dword [esp + 0x44], 0x18
call dword [sym.imp.libUI.module_public:_long_int___thiscall_CDwmApiImpl::DwmExtendFrameIntoClientArea_struct_HWND_____struct__MARGINS_const__]
mov dword [esp + 0x2c], 2
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
add ecx, eax
mov edi, 2
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], eax
cmp eax, ecx
jbe 0x4da561
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 4]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
lea esp, [esp]
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
add eax, ecx
mov dword [esp + 0x18], eax
cmp ecx, eax
jbe 0x4da58a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 4]
test edx, edx
je 0x4da599
cmp edx, ecx
je 0x4da5a3
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x14], eax
je 0x4da7ce
lea eax, [esp + 0x10]
call fcn.00413720
mov eax, dword [eax + 4]
cmp dword [eax - 0xc], 0
lea eax, [esp + 0x10]
je 0x4da5f6
call fcn.00413720
mov ecx, dword [ebx + 0xc]
lea edx, [ecx - 4]
push edx
lea edx, [edi + 0x13]
push edx
add ecx, 0xffffffec
push ecx
lea ecx, [edi + 3]
push ecx
add eax, 0x30
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [esp + 0x10]
call fcn.00413720
mov ebp, dword [eax + 0x38]
add ebp, 4
jmp 0x4da608
call fcn.00413720
add eax, 0x30
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
lea ebp, [edi + 3]
lea eax, [esp + 0x10]
call fcn.00413720
test dword [eax + 0x14], 0x100000
je 0x4da63a
lea eax, [esp + 0x10]
call fcn.00413720
cmp dword [eax + 0x58], 0
jne 0x4da63a
lea eax, [esp + 0x10]
call fcn.00413720
mov edx, dword [eax]
cmp dword [edx - 0xc], 0
jne 0x4da65d
lea eax, [esp + 0x10]
call fcn.00413720
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x4da6c5
lea eax, [esp + 0x10]
call fcn.00413720
test dword [eax + 0x14], 0x100000
jne 0x4da6c5
push 0x64
push 0x64
push 0
push 0
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [esp + 0x10]
call fcn.00413720
mov eax, dword [eax]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
push 0x420
lea edi, [esp + 0x34]
push edi
mov edi, dword [eax - 0xc]
push edi
push eax
mov eax, dword [edx + 0x70]
call eax
mov edi, dword [esp + 0x38]
sub edi, dword [esp + 0x30]
lea eax, [esp + 0x10]
call fcn.00413720
mov ecx, dword [ebx + 0xc]
lea edx, [ecx - 1]
push edx
add edi, ebp
push edi
add ecx, 0xffffffe9
push ecx
push ebp
add eax, 0x40
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [esp + 0x24]
jmp 0x4da6d8
lea eax, [esp + 0x10]
call fcn.00413720
add eax, 0x40
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
lea eax, [esp + 0x10]
call fcn.00413720
mov dword [eax + 0x20], edi
lea eax, [esp + 0x10]
call fcn.00413720
mov ecx, dword [ebx + 0xc]
sub ecx, 0x18
mov dword [eax + 0x24], ecx
lea eax, [esp + 0x10]
call fcn.00413720
mov edx, dword [ebx + 0xc]
dec edx
mov dword [eax + 0x2c], edx
lea eax, [esp + 0x10]
call fcn.00413720
mov dword [eax + 0x28], edi
lea eax, [esp + 0x10]
call fcn.00413720
mov ebp, dword [sym.imp.USER32.dll_IsRectEmpty]
add eax, 0x30
push eax
call ebp
test eax, eax
jne 0x4da74e
lea eax, [esp + 0x10]
call fcn.00413720
lea edi, [eax + 0x28]
lea eax, [esp + 0x10]
call fcn.00413720
mov ecx, dword [eax + 0x38]
sub ecx, dword [eax + 0x30]
add eax, 0x30
add ecx, 6
add dword [edi], ecx
lea eax, [esp + 0x10]
call fcn.00413720
add eax, 0x40
push eax
call ebp
test eax, eax
jne 0x4da784
lea eax, [esp + 0x10]
call fcn.00413720
lea edi, [eax + 0x28]
lea eax, [esp + 0x10]
call fcn.00413720
mov edx, dword [eax + 0x48]
sub edx, dword [eax + 0x40]
add eax, 0x40
add edx, 4
add dword [edi], edx
lea eax, [esp + 0x10]
call fcn.00413720
mov edi, dword [eax + 0x28]
mov eax, dword [esp + 0x10]
add edi, 4
mov dword [esp + 0x24], edi
test eax, eax
jne 0x4da7c8
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
xor ecx, ecx
mov ecx, dword [ecx + 0x1c]
add ecx, dword [eax + 0x18]
cmp dword [esp + 0x14], ecx
jb 0x4da7bb
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
inc dword [esp + 0x14]
mov ebp, dword [esp + 0x28]
jmp 0x4da570
mov eax, dword [eax]
mov ecx, eax
jmp 0x4da7a9
cmp dword [esp + 0x20], 0
je 0x4da7ed
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx]
mov edx, dword [ebx + 8]
sub ecx, dword [ebx + 4]
push 0
push 0x18
sub edx, eax
push edx
sub ecx, 0x18
push ecx
jmp 0x4da812
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
mov edi, dword [ebx + 8]
sub edi, dword [ebx]
push 0xf
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [ebx]
push 0x18
push edi
add edx, 0xffffffe8
push edx
push eax
mov ecx, ebp
call sub.mfc90u.dll_CDC::FillSolidRect
mov edi, dword [ebx + 8]
sub edi, dword [ebx]
lea ecx, [esp + 0x30]
push edi
push ecx
mov edx, 0x18
call fcn.00408860
mov dword [esp + 0xac], 1
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x24]
push ecx
xor ebp, ebp
push eax
mov dword [esp + 0x2c], ebp
call sub.gdiplus.dll_GdipCreateFromHDC
mov edx, dword [esp + 0x24]
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], edx
mov byte [esp + 0xac], 2
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], ebp
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebp
mov byte [esp + 0xac], 3
lea edx, [esp + 0x24]
push edx
push ebp
call sub.gdiplus.dll_GdipSaveGraphics
test eax, eax
je 0x4da8a0
mov dword [esp + 0x14], eax
push 2
push ebp
call sub.gdiplus.dll_GdipSetCompositingQuality
test eax, eax
je 0x4da8b0
mov dword [esp + 0x14], eax
push 7
push ebp
call sub.gdiplus.dll_GdipSetInterpolationMode
test eax, eax
je 0x4da8c0
mov dword [esp + 0x14], eax
push 4
push ebp
call sub.gdiplus.dll_GdipSetSmoothingMode
test eax, eax
je 0x4da8d0
mov dword [esp + 0x14], eax
push 0
push ebp
call sub.gdiplus.dll_GdipSetCompositingMode
test eax, eax
je 0x4da8e0
mov dword [esp + 0x14], eax
cmp dword [esp + 0x2c], 0
je 0x4da901
mov eax, dword [esp + 0x2c]
push 4
push eax
push edi
push 0
push 0
push ebp
call sub.gdiplus.dll_GdipSetClipRectI
test eax, eax
je 0x4da901
mov dword [esp + 0x14], eax
mov edi, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
add ecx, edi
cmp edi, ecx
jbe 0x4da913
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 4]
mov dword [esp + 0x18], edx
mov ebp, edi
mov eax, dword [esi + 0x1c]
mov edi, dword [esi + 0x20]
add edi, eax
mov dword [esp + 0x1c], ebp
cmp eax, edi
jbe 0x4da932
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 4]
test ecx, ecx
je 0x4da941
cmp ecx, eax
je 0x4da947
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebp, edi
je 0x4dac4c
lea eax, [esp + 0x18]
call fcn.00413720
mov eax, dword [eax + 0x28]
cmp eax, dword [ebx + 8]
jg 0x4dac4c
lea eax, [esp + 0x18]
call fcn.00413720
test dword [eax + 0x14], 0x80000
je 0x4da9e9
lea eax, [esp + 0x18]
call fcn.00413720
mov edi, eax
lea eax, [esp + 0x18]
call fcn.00413720
mov ebp, eax
lea eax, [esp + 0x18]
call fcn.00413720
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
call fcn.00413720
fld qword [esi + 0x58]
mov edx, dword [esi + 0x50]
mov ecx, dword [ebx + 0xc]
sub esp, 8
fstp qword [esp]
push edx
mov edx, dword [esi + 0x4c]
push edx
mov edx, dword [esi + 0x48]
push edx
mov edx, dword [esi + 0x60]
mov eax, dword [eax + 0x20]
push edx
mov edx, dword [edi + 0x2c]
sub edx, ecx
add edx, 0x18
push edx
mov edx, dword [ebp + 0x28]
push edx
mov edx, dword [esp + 0x40]
mov edx, dword [edx + 0x24]
sub edx, ecx
add edx, 0x18
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00413c40
add esp, 0x2c
lea eax, [esp + 0x18]
call fcn.00413720
cmp dword [eax + 0x58], 0
lea eax, [esp + 0x18]
je 0x4daa41
call fcn.00413720
mov edi, eax
lea eax, [esp + 0x18]
call fcn.00413720
mov ebp, eax
lea eax, [esp + 0x18]
call fcn.00413720
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
call fcn.00413720
fld qword [esi + 0x38]
mov edx, dword [esi + 0x30]
sub esp, 8
fstp qword [esp]
push edx
mov edx, dword [esi + 0x2c]
push edx
mov edx, dword [esi + 0x28]
push edx
mov edx, dword [esi + 0x40]
jmp 0x4daafa
call fcn.00413720
cmp dword [eax + 0x50], 0
lea eax, [esp + 0x18]
je 0x4daa95
call fcn.00413720
mov edi, eax
lea eax, [esp + 0x18]
call fcn.00413720
mov ebp, eax
lea eax, [esp + 0x18]
call fcn.00413720
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
call fcn.00413720
fld qword [esi + 0x78]
mov edx, dword [esi + 0x70]
sub esp, 8
fstp qword [esp]
push edx
mov edx, dword [esi + 0x6c]
push edx
mov edx, dword [esi + 0x68]
push edx
mov edx, dword [esi + 0x80]
jmp 0x4daafa
call fcn.00413720
test dword [eax + 0x14], 0x10000
jne 0x4dab29
lea eax, [esp + 0x18]
call fcn.00413720
mov edi, eax
lea eax, [esp + 0x18]
call fcn.00413720
mov ebp, eax
lea eax, [esp + 0x18]
call fcn.00413720
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
call fcn.00413720
fld qword [esi + 0x98]
mov edx, dword [esi + 0x90]
sub esp, 8
fstp qword [esp]
push edx
mov edx, dword [esi + 0x8c]
push edx
mov edx, dword [esi + 0x88]
push edx
mov edx, dword [esi + 0xa0]
mov ecx, dword [ebx + 0xc]
mov eax, dword [eax + 0x20]
push edx
mov edx, dword [edi + 0x2c]
sub edx, ecx
add edx, 0x18
push edx
mov edx, dword [ebp + 0x28]
push edx
mov edx, dword [esp + 0x40]
mov edx, dword [edx + 0x24]
sub edx, ecx
add edx, 0x18
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00413c40
add esp, 0x2c
lea eax, [esp + 0x18]
call fcn.00413720
add eax, 0x30
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x4dac1a
lea eax, [esp + 0x18]
call fcn.00413720
add eax, 4
push eax
call fcn.004b9ae0
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4daba6
lea eax, [esp + 0x18]
call fcn.00413720
mov ebp, eax
lea eax, [esp + 0x18]
call fcn.00413720
mov edi, eax
lea eax, [esp + 0x18]
call fcn.00413720
mov edx, dword [ebp + 0x14]
mov ecx, dword [edi + 0x34]
sub ecx, dword [ebx + 0xc]
mov edi, dword [esp + 0x2c]
shr edx, 0x15
and edx, 1
push edx
mov edx, dword [eax + 0x30]
add ecx, 0x18
push ecx
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.00405d90
add esp, 0x10
lea eax, [esp + 0x18]
call fcn.00413720
mov ecx, dword [eax + 0xc]
cmp dword [ecx - 0xc], 0
je 0x4dac1a
lea eax, [esp + 0x18]
call fcn.00413720
add eax, 0xc
push eax
call fcn.004b9ae0
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4dac1a
lea eax, [esp + 0x18]
call fcn.00413720
mov ebp, eax
lea eax, [esp + 0x18]
call fcn.00413720
mov edi, eax
lea eax, [esp + 0x18]
call fcn.00413720
mov edx, dword [ebp + 0x14]
mov ecx, dword [edi + 0x34]
sub ecx, dword [ebx + 0xc]
mov edi, dword [esp + 0x2c]
shr edx, 0x15
and edx, 1
push edx
mov edx, dword [eax + 0x30]
add ecx, 0x18
push ecx
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.00405d90
add esp, 0x10
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4dac46
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
xor ecx, ecx
mov ecx, dword [ecx + 0x1c]
add ecx, dword [eax + 0x18]
mov ebp, dword [esp + 0x1c]
cmp ebp, ecx
jb 0x4dac40
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
inc ebp
jmp 0x4da91c
mov eax, dword [eax]
mov ecx, eax
jmp 0x4dac2c
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
push edx
push ebp
call sub.gdiplus.dll_GdipRestoreGraphics
test eax, eax
je 0x4dac63
mov dword [esp + 0x14], eax
mov edx, dword [ebx]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
sub eax, dword [ebx + 4]
mov edi, dword [esp + 0x44]
push 0x18
sub ecx, edx
push ecx
sub eax, 0x18
push eax
mov eax, dword [esp + 0x40]
push edx
push eax
push edi
call sub.gdiplus.dll_GdipDrawImageRectI
test eax, eax
je 0x4dac8f
mov dword [esp + 0x48], eax
mov byte [esp + 0xac], 2
push ebp
call sub.gdiplus.dll_GdipDeleteGraphics
mov byte [esp + 0xac], 1
push edi
call sub.gdiplus.dll_GdipDeleteGraphics
mov dword [esp + 0xac], 0xffffffff
mov ecx, dword [esp + 0x34]
push ecx
mov dword [esp + 0x34], vtable.Gdiplus::Image.0
call sub.gdiplus.dll_GdipDisposeImage
mov edi, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
add edx, edi
cmp edi, edx
jbe 0x4dacda
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
mov eax, dword [esi + 0x1c]
mov edi, dword [esi + 0x20]
mov ebp, dword [esp + 0x28]
add edi, eax
cmp eax, edi
jbe 0x4dacfb
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
test ecx, ecx
je 0x4dad0a
cmp ecx, eax
je 0x4dad10
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x14], edi
je 0x4dae50
lea eax, [esp + 0x10]
call fcn.00413720
mov ecx, dword [eax + 0x28]
cmp ecx, dword [ebx + 8]
jg 0x4dae50
lea eax, [esp + 0x10]
call fcn.00413720
add eax, 0x40
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x4dae1d
push 0x3c
push eax
lea edx, [esp + 0x68]
push edx
call sub.MSVCR90.dll_memset
mov eax, dword [esi + 0x94]
movzx ecx, word [esi + 0x96]
movzx edx, al
and ecx, 0xff
shl edx, 0x10
and eax, 0xff00
or ecx, edx
or ecx, eax
add esp, 0xc
lea eax, [esp + 0x10]
mov dword [esp + 0x5c], 0x40
mov dword [esp + 0x60], 0x2c01
mov dword [esp + 0x8c], 1
mov dword [esp + 0x64], ecx
mov dword [esp + 0x90], 8
call fcn.00413720
mov edi, eax
lea eax, [esp + 0x10]
call fcn.00413720
mov eax, dword [eax]
lea ecx, [esp + 0x5c]
push ecx
add edi, 0x40
push edi
mov edi, dword [esp + 0x30]
mov edx, dword [edi + 4]
push 0x8024
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0xd0]
push 1
push 0
push edx
push eax
mov ecx, 0x5c71c0
call dword [sym.imp.libUI.module_public:_long_int___thiscall_CUxThemeAeroImpl::DrawThemeTextEx_void___struct_HDC_____int__int__wchar_t_const___int__unsigned_long_int__struct_tagRECT___struct__DTTOPTS_const__]
test eax, eax
jge 0x4dae1d
lea eax, [esp + 0x10]
call fcn.00413720
mov ebp, eax
lea eax, [esp + 0x10]
call fcn.00413720
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
mov edx, dword [edi]
mov edx, dword [edx + 0x70]
push 0x8024
add ebp, 0x40
push ebp
push ecx
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4dae4a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
xor ecx, ecx
mov ecx, dword [ecx + 0x1c]
add ecx, dword [eax + 0x18]
cmp dword [esp + 0x14], ecx
jb 0x4dae41
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
inc dword [esp + 0x14]
jmp 0x4dace5
mov eax, dword [eax]
mov ecx, eax
jmp 0x4dae2f
mov edx, dword [ebp]
mov eax, dword [esp + 0x40]
mov edx, dword [edx + 0x28]
push eax
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 4]
push 1
mov ecx, ebp
call edx
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xa0
ret 0xc