Function at 0x40d950
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43460a
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push esi
push edi
mov eax, dword [0x44600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
test edi, edi
jne 0x40d985
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 8
push eax
mov dword [ebp - 0x1c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
sub esp, 0xc
call fcn.0040e740
call fcn.0040c0e0
mov dword [ebp - 0x14], eax
call fcn.00423ed8
mov esi, dword [eax]
call fcn.00423ed2
mov ecx, dword [eax]
mov dword [0x44833c], edi
mov dword [0x448340], ecx
mov dword [0x448344], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 2
push 0
mov dword [0x448348], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
xor ecx, ecx
test eax, eax
setns cl
mov dword [0x448284], ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 0x43dfb4
mov edi, eax
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40da41
push str.GetDpiForMonitor
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40da38
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 2
push edi
call dword [sym.imp.USER32.dll_MonitorFromWindow]
push eax
call esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40da68
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x5a
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp + 8]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd xmm1, qword [0x43ebc8]
divsd xmm0, qword [0x43ebd0]
comisd xmm1, xmm0
jbe 0x40da90
movsd qword [0x448288], xmm1
jmp 0x40da98
movsd qword [0x448288], xmm0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call eax
mov dword [0x448280], eax
mov esi, dword [eax]
call fcn.0040c8c0
mov ecx, dword [0x448280]
push eax
mov eax, dword [esi + 0x34]
call eax
test eax, eax
je 0x40de59
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
call fcn.0040c640
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, eax
neg edi
sbb edi, edi
neg edi
dec edi
mov dword [ebp + 8], edi
test eax, eax
je 0x40dc79
mov esi, dword [0x448280]
mov edi, dword [esi]
call fcn.0040d2b0
push eax
mov eax, dword [edi + 0x34]
mov ecx, esi
call eax
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [0x448280]
cmp dword [0x4483ac], 0
je 0x40dc5f
mov dword [ebp - 0x5c], vtable.WTL::CMessageLoop.0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 1
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x28], 0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 4], 2
mov dword [ebp - 0x5c], 0x43dab4
mov dword [ebp - 4], 3
mov dword [ebp - 0x5c], 0x43da8c
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 4
mov eax, dword [0x447f78]
add eax, 0x10
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 6
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [0x4483a4]
push 4
mov dword [ebp + 8], eax
mov ecx, dword [edi + 8]
inc ecx
push ecx
push dword [edi]
call fcn.00423ede
add esp, 0xc
test eax, eax
je 0x40dc29
mov dword [edi], eax
mov eax, dword [edi + 8]
push 4
inc eax
push eax
push dword [edi + 4]
call fcn.00423ede
add esp, 0xc
test eax, eax
je 0x40dc29
mov dword [edi + 4], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x1c], eax
lea ecx, [eax*4]
mov eax, dword [edi]
add eax, ecx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 8
je 0x40dc0b
mov edx, dword [ebp + 8]
mov dword [eax], edx
mov byte [ebp - 4], 6
mov eax, dword [edi + 4]
add eax, ecx
mov dword [ebp + 8], eax
mov byte [ebp - 4], 9
je 0x40dc22
lea ecx, [ebp - 0x5c]
mov dword [eax], ecx
mov byte [ebp - 4], 6
inc dword [edi + 8]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x14], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call fcn.0040e0e0
mov ecx, 0x448370
mov edi, eax
call fcn.0040dfa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.0040e480
jmp 0x40dc62
mov edi, dword [ebp + 8]
test esi, esi
je 0x40dc73
mov eax, dword [esi]
cmp eax, vtable.rg_n1::rg_n7802.0
jne 0x40de6b
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 0x4482b4
call fcn.00414d90
mov ecx, dword [0x448280]
test ecx, ecx
je 0x40dcac
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
cmp eax, method.CWConstString.virtual_48
jne 0x40dca0
push 1
call dword [edx + 0x2c]
jmp 0x40dca2
call eax
mov dword [0x448280], 0
mov ecx, 0x448314
call fcn.0040ef80
mov ecx, 0x448260
call fcn.00412a10
push 0x448290
mov dword [ebp + 8], 0x448290
call esi
mov dword [ebp - 4], 0xd
mov eax, dword [0x4482a8]
test eax, eax
je 0x40dcef
push eax
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov dword [0x4482a8], 0
mov dword [ebp - 4], 0xffffffff
push 0x448290
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x447f78]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov dword [ebp - 4], 0xf
push eax
call esi
mov esi, dword [0x4483a8]
mov byte [ebp - 0x1c], 1
test esi, esi
je 0x40dd70
cmp dword [esi + 4], 0
jle 0x40dd3e
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [0x4483a8]
test esi, esi
je 0x40dd70
mov eax, dword [esi]
test eax, eax
je 0x40dd57
push eax
call fcn.00423b54
add esp, 4
mov dword [esi], 0
push 0xc
push esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.0041ffbc
add esp, 8
push dword [ebp - 0x20]
mov dword [0x4483a8], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [0x4483a4]
test esi, esi
je 0x40ddd6
mov eax, dword [esi]
test eax, eax
je 0x40ddad
push eax
call fcn.00423b54
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40ddc4
push eax
call fcn.00423b54
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
mov dword [esi + 8], 0
call fcn.0041ffbc
add esp, 8
mov esi, dword [0x44839c]
test esi, esi
je 0x40de0c
cmp dword [esi], 0
je 0x40de0c
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40ddf6
mov ecx, dword [eax]
cmp ecx, vtable.ATL::CRegObject.0
jne 0x40de75
mov eax, dword [esi + 0x20]
push 0
mov dword [esi + 0x10], 0
call eax
add esi, 0x24
cmp dword [esi], 0
jne 0x40dde5
mov esi, dword [0x446ab8]
mov ecx, dword [0x446abc]
cmp esi, ecx
jae 0x40de3a
nop dword [eax]
mov eax, dword [esi]
test eax, eax
je 0x40de33
mov eax, dword [eax + 0x1c]
push 0
call eax
mov ecx, dword [0x446abc]
add esi, 4
cmp esi, ecx
jb 0x40de20
mov ecx, 0x448370
call fcn.0040e6c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x448280]
mov eax, dword [ecx]
call dword [eax + 0x30]
push 0xffffffffffffffff
call fcn.00423ea3
mov ecx, esi
call dword [eax + 0x54]
jmp 0x40dc73
push eax
call dword [ecx + 8]
jmp 0x40ddf6