Function at 0x4178a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43095f
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push esi
push edi
mov eax, dword [0x44100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4178d5
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 8
push eax
mov dword [ebp - 0x24], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
sub esp, 0xc
call fcn.004183d0
call fcn.004108c0
mov dword [ebp - 0x14], eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv]
mov esi, dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
mov ecx, dword [eax]
mov dword [0x442edc], edi
mov dword [0x442ee0], ecx
mov dword [0x442ee4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 2
push 0
mov dword [0x442ee8], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
xor ecx, ecx
test eax, eax
setns cl
mov dword [0x442e24], ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 0x435d60
mov edi, eax
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x417993
push str.GetDpiForMonitor
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x41798a
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
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 0x4179ba
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 [0x436890]
divsd xmm0, qword [0x4368a8]
comisd xmm1, xmm0
jbe 0x4179e2
movsd qword [0x442e28], xmm1
jmp 0x4179ea
movsd qword [0x442e28], xmm0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call eax
mov dword [0x442e20], eax
mov esi, dword [eax]
call fcn.004111e0
mov ecx, dword [0x442e20]
push eax
mov eax, dword [esi + 0x34]
call eax
test eax, eax
jne 0x417a20
mov ecx, dword [0x442e20]
mov eax, dword [ecx]
call dword [eax + 0x30]
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
call fcn.00410f50
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
mov dword [ebp + 8], esi
test eax, eax
je 0x417d83
mov esi, dword [0x442e20]
mov edi, dword [esi]
call fcn.00410330
push eax
mov eax, dword [edi + 0x34]
mov ecx, esi
call eax
neg eax
sbb ecx, ecx
and ecx, dword [0x442e20]
cmp dword [0x442f2c], 0
mov dword [ebp - 0x14], ecx
je 0x417d77
mov dword [ebp - 0x64], vtable.WTL::CMessageLoop.0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], 1
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x30], 0
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 4], 2
mov dword [ebp - 0x64], 0x435b34
mov dword [ebp - 4], 3
mov dword [ebp - 0x64], 0x435b0c
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 4
mov edi, dword [0x442a00]
add edi, 0x10
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 6
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x442f24]
mov dword [ebp - 0x18], esi
push 4
mov dword [ebp + 8], eax
mov ecx, dword [esi + 8]
inc ecx
push ecx
push dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__recalloc]
add esp, 0xc
test eax, eax
je 0x417b8b
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__recalloc]
add esp, 0xc
test eax, eax
je 0x417b8b
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x10], eax
lea ecx, [eax*4]
mov eax, dword [esi]
add eax, ecx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 8
je 0x417b6d
mov edx, dword [ebp + 8]
mov dword [eax], edx
mov byte [ebp - 4], 6
mov eax, dword [esi + 4]
add eax, ecx
mov dword [ebp + 8], eax
mov byte [ebp - 4], 9
je 0x417b84
lea ecx, [ebp - 0x64]
mov dword [eax], ecx
mov byte [ebp - 4], 6
inc dword [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x24], 0
mov byte [ebp - 4], 4
mov edi, 1
xor esi, esi
test edi, edi
je 0x417be7
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x417be7
mov eax, dword [ebp - 0x64]
mov ecx, esi
inc esi
push ecx
lea ecx, [ebp - 0x64]
mov eax, dword [eax + 8]
cmp eax, fcn.00417700
jne 0x417bd6
call fcn.00417700
jmp 0x417bd8
call eax
mov ecx, eax
xor eax, eax
test ecx, ecx
cmovne eax, edi
mov edi, eax
test edi, edi
jne 0x417ba5
push 0
push 0
push 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x417ba1
test eax, eax
je 0x417ca7
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 4]
cmp eax, fcn.00417810
jne 0x417c1f
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
call fcn.00417810
jmp 0x417c28
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x64]
call eax
test eax, eax
jne 0x417c40
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0xc]
cmp eax, method.WTL::CMessageLoop.virtual_12
jne 0x417c85
mov eax, dword [ebp - 0x44]
cmp eax, 0x118
ja 0x417c65
je 0x417c81
cmp eax, 0xf
je 0x417c81
cmp eax, 0xa0
jmp 0x417c6a
cmp eax, 0x200
je 0x417c81
mov ecx, 1
xor eax, eax
test ecx, ecx
mov edi, ecx
cmove eax, esi
mov esi, eax
jmp 0x417ba1
xor ecx, ecx
jmp 0x417c90
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x64]
call eax
mov ecx, eax
test ecx, ecx
je 0x417c99
mov edi, 1
xor eax, eax
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x417ba1
mov eax, dword [0x442a00]
mov esi, dword [ebp - 0x40]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov byte [ebp - 4], 0xc
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [0x442f24]
xor ecx, ecx
mov edi, dword [edx + 8]
test edi, edi
jle 0x417cff
mov edx, dword [edx]
nop
cmp dword [edx], eax
je 0x417cee
inc ecx
add edx, 4
cmp ecx, edi
jl 0x417ce0
jmp 0x417cff
cmp ecx, 0xffffffff
je 0x417cff
push ecx
mov ecx, dword [0x442f24]
call fcn.00417ec0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x64], vtable.WTL::CMessageLoop.0
mov dword [ebp - 4], 0x11
mov eax, dword [ebp - 0x54]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x417d3b
push eax
call edi
add esp, 4
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x417d64
push eax
call edi
add esp, 4
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
jmp 0x417d7a
mov esi, dword [ebp + 8]
test ecx, ecx
je 0x417d83
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, 0x442e54
call fcn.00420150
mov ecx, dword [0x442e20]
test ecx, ecx
je 0x417da6
mov eax, dword [ecx]
call dword [eax + 0x30]
mov dword [0x442e20], 0
mov ecx, 0x442eb4
call fcn.00419f90
mov ecx, 0x442e00
call fcn.0041d440
push 0x442e30
mov dword [ebp + 8], 0x442e30
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0x13
mov eax, dword [0x442e48]
test eax, eax
je 0x417ded
push eax
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov dword [0x442e48], 0
mov dword [ebp - 4], 0xffffffff
push 0x442e30
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00417580
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10