Function at 0x40ddb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4346aa
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 0x40dde5
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.0040eba0
call fcn.0040c540
mov dword [ebp - 0x14], eax
call fcn.00423d48
mov esi, dword [eax]
call fcn.00423d42
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 0x43e1f4
mov edi, eax
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40dea1
push str.GetDpiForMonitor
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40de98
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 0x40dec8
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 [0x43ee08]
divsd xmm0, qword [0x43ee10]
comisd xmm1, xmm0
jbe 0x40def0
movsd qword [0x448288], xmm1
jmp 0x40def8
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.0040cd20
mov ecx, dword [0x448280]
push eax
mov eax, dword [esi + 0x34]
call eax
test eax, eax
je 0x40e2b9
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
call fcn.0040caa0
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 0x40e0d9
mov esi, dword [0x448280]
mov edi, dword [esi]
call fcn.0040d710
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 0x40e0bf
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], 0x43dea0
mov dword [ebp - 4], 3
mov dword [ebp - 0x5c], 0x43de78
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.00423d4e
add esp, 0xc
test eax, eax
je 0x40e089
mov dword [edi], eax
mov eax, dword [edi + 8]
push 4
inc eax
push eax
push dword [edi + 4]
call fcn.00423d4e
add esp, 0xc
test eax, eax
je 0x40e089
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 0x40e06b
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 0x40e082
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.0040e540
mov ecx, 0x448370
mov edi, eax
call fcn.0040e400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.0040e8e0
jmp 0x40e0c2
mov edi, dword [ebp + 8]
test esi, esi
je 0x40e0d3
mov eax, dword [esi]
cmp eax, vtable.rg_n1::rg_n7814.0
jne 0x40e2cb
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 0x4482b4
call fcn.00414c00
mov ecx, dword [0x448280]
test ecx, ecx
je 0x40e10c
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
cmp eax, method.CWString.virtual_48
jne 0x40e100
push 1
call dword [edx + 0x2c]
jmp 0x40e102
call eax
mov dword [0x448280], 0
mov ecx, 0x448314
call fcn.0040edf0
mov ecx, 0x448260
call fcn.00412880
push 0x448290
mov dword [ebp + 8], 0x448290
call esi
mov dword [ebp - 4], 0xd
mov eax, dword [0x4482a8]
test eax, eax
je 0x40e14f
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 0x40e1d0
cmp dword [esi + 4], 0
jle 0x40e19e
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [0x4483a8]
test esi, esi
je 0x40e1d0
mov eax, dword [esi]
test eax, eax
je 0x40e1b7
push eax
call fcn.004239c4
add esp, 4
mov dword [esi], 0
push 0xc
push esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.0041fe2c
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 0x40e236
mov eax, dword [esi]
test eax, eax
je 0x40e20d
push eax
call fcn.004239c4
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40e224
push eax
call fcn.004239c4
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
mov dword [esi + 8], 0
call fcn.0041fe2c
add esp, 8
mov esi, dword [0x44839c]
test esi, esi
je 0x40e26c
cmp dword [esi], 0
je 0x40e26c
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40e256
mov ecx, dword [eax]
cmp ecx, vtable.ATL::CRegObject.0
jne 0x40e2d5
mov eax, dword [esi + 0x20]
push 0
mov dword [esi + 0x10], 0
call eax
add esi, 0x24
cmp dword [esi], 0
jne 0x40e245
mov esi, dword [0x446ab8]
mov ecx, dword [0x446abc]
cmp esi, ecx
jae 0x40e29a
nop dword [eax]
mov eax, dword [esi]
test eax, eax
je 0x40e293
mov eax, dword [eax + 0x1c]
push 0
call eax
mov ecx, dword [0x446abc]
add esi, 4
cmp esi, ecx
jb 0x40e280
mov ecx, 0x448370
call fcn.0040eb20
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.00423d13
mov ecx, esi
call dword [eax + 0x54]
jmp 0x40e0d3
push eax
call dword [ecx + 8]
jmp 0x40e256