Function at 0x40f5b0
Capabilities:
Check if file exists
Create process on windows
Print debug messages
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c831
mov eax, dword fs:[0]
push eax
sub esp, 0x4b0
mov eax, dword [0x4bf070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x458], edx
mov eax, ecx
mov dword [ebp - 0x41c], eax
push ecx
push eax
lea ecx, [ebp - 0x448]
call fcn.00417cf0
mov dword [ebp - 4], 0
mov dword [ebp - 0x42c], 1
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 0
call fcn.004108a0
mov dword [ebp - 0x450], eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 1
call fcn.0041e1f0
lea edx, [ebp - 0x450]
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.0043b3d0
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x418]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f66d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x4a5a68
push str.mpSetup_Cls
call dword [sym.imp.USER32.dll_FindWindowW]
push str._updump
lea ecx, [ebp - 0x418]
call fcn.004075e0
push ecx
mov byte [ebp - 4], 3
mov esi, esp
mov dword [ebp - 0x420], esi
mov ecx, dword [ebp - 0x418]
lea ecx, [ecx - 0x10]
call fcn.00407890
add eax, 0x10
lea ecx, [ebp - 0x448]
mov dword [esi], eax
call fcn.00418730
xor ebx, ebx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x418]
cmp eax, 0xffffffff
mov eax, edi
setne bl
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f6e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x40f773
push 0x4a4d44
push str.none
push str.crash
call fcn.00434c20
add esp, 8
mov ecx, esp
push str._updump
call fcn.004075e0
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x448]
call fcn.004189f0
mov byte [ebp - 4], 4
cmp dword [0x4c5d10], 0
jne 0x40f746
push 4
call fcn.0045fcc9
mov dword [ebp - 0x420], eax
add esp, 4
mov dword [0x4c5d10], eax
mov dword [eax], vtable.CUploadDumpMgr.0
lea eax, [ebp - 0x418]
push eax
call fcn.00411030
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x418]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f773
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x41c]
lea ecx, [ebp - 0x430]
call fcn.004075e0
mov byte [ebp - 4], 5
push str._cpCallApp
push dword [ebp - 0x430]
call fcn.0046bce8
add esp, 8
test eax, eax
je 0x40f7b6
push str._rgCallApp
push dword [ebp - 0x430]
call fcn.0046bce8
add esp, 8
test eax, eax
jne 0x40f821
push str._cpCallApp
push dword [ebp - 0x430]
call fcn.0046bce8
add esp, 8
mov edx, str.rg_callapp
test eax, eax
mov ecx, str.cp_callapp
cmovne ecx, edx
push ecx
lea ecx, [ebp - 0x418]
call fcn.004075e0
push 0x4a4d44
mov byte [ebp - 4], 6
push str.none
push dword [ebp - 0x418]
call fcn.00434c20
mov byte [ebp - 4], 5
add esp, 0xc
mov edx, dword [ebp - 0x418]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f821
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str._check_update
lea ecx, [ebp - 0x418]
call fcn.004075e0
push ecx
mov byte [ebp - 4], 7
mov esi, esp
mov dword [ebp - 0x420], esi
mov ecx, dword [ebp - 0x418]
lea ecx, [ecx - 0x10]
call fcn.00407890
add eax, 0x10
lea ecx, [ebp - 0x448]
mov dword [esi], eax
call fcn.00418730
xor ebx, ebx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x418]
cmp eax, 0xffffffff
mov eax, edi
setne bl
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f885
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x40f91c
cmp dword [ebp - 0x44c], 0
jne 0x40f91c
push ecx
mov ecx, esp
mov dword [ebp - 0x42c], 0
push str._check_update
call fcn.004075e0
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x448]
call fcn.004189f0
mov byte [ebp - 4], 8
mov eax, dword [0x4c5d0c]
test eax, eax
jne 0x40f8f4
push 0xc
call fcn.0045fcc9
add esp, 4
mov dword [ebp - 0x420], eax
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.00401500
mov byte [ebp - 4], 8
mov dword [0x4c5d0c], eax
mov ecx, eax
call fcn.00401690
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0x41c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f91c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, esp
push str._check_enable_pdf_protect
call fcn.004075e0
lea ecx, [ebp - 0x448]
call fcn.004188f0
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test eax, eax
je 0x40f999
push 0x400
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00462960
add esp, 0xc
call fcn.004088c0
push eax
call fcn.00408530
push eax
push str.___Check_enable_pdf_protect__d__d___
lea eax, [ebp - 0x414]
push 0x200
push eax
call fcn.0040b3e0
add esp, 0x14
lea eax, [ebp - 0x414]
push eax
call ebx
call fcn.00408530
test eax, eax
je 0x40f999
call fcn.004088c0
test eax, eax
je 0x40f999
call fcn.0040f500
push str._enable_pdf_protect
lea ecx, [ebp - 0x418]
call fcn.004075e0
push ecx
mov byte [ebp - 4], 0xa
mov esi, esp
mov dword [ebp - 0x420], esi
mov ecx, dword [ebp - 0x418]
lea ecx, [ecx - 0x10]
call fcn.00407890
add eax, 0x10
lea ecx, [ebp - 0x448]
mov dword [esi], eax
call fcn.00418730
xor ecx, ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x418]
cmp eax, 0xffffffff
mov eax, edi
setne cl
add edx, 0xfffffff0
mov dword [ebp - 0x41c], ecx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fa09
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x41c]
test ecx, ecx
je 0x40fa14
call fcn.0040f500
jmp 0x40fa4b
push ecx
mov ecx, esp
push str._disable_pdf_protect
call fcn.004075e0
lea ecx, [ebp - 0x448]
call fcn.00418860
test eax, eax
je 0x40fa4b
call fcn.00405460
call fcn.004360b0
cmp dword [0x4c3d48], 0x800
jl 0x40fa4b
call fcn.0044ca60
push str._install
lea ecx, [ebp - 0x418]
call fcn.004075e0
push ecx
mov byte [ebp - 4], 0xb
mov esi, esp
mov dword [ebp - 0x420], esi
mov ecx, dword [ebp - 0x418]
lea ecx, [ecx - 0x10]
call fcn.00407890
add eax, 0x10
lea ecx, [ebp - 0x448]
mov dword [esi], eax
call fcn.00418730
xor ecx, ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x418]
cmp eax, 0xffffffff
mov eax, edi
setne cl
add edx, 0xfffffff0
mov dword [ebp - 0x41c], ecx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fabb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x41c]
test ecx, ecx
jne 0x40fad7
push ecx
mov ecx, esp
push str._install
call fcn.004075e0
lea ecx, [ebp - 0x448]
call fcn.004188f0
push ecx
mov ecx, esp
push str._update
call fcn.004075e0
lea ecx, [ebp - 0x448]
call fcn.004188f0
push ecx
mov ecx, esp
push str._uninstall
call fcn.004075e0
lea ecx, [ebp - 0x448]
call fcn.004188f0
push 0x4a5bec
lea ecx, [ebp - 0x418]
call fcn.004075e0
push ecx
mov byte [ebp - 4], 0xc
mov esi, esp
mov dword [ebp - 0x420], esi
mov ecx, dword [ebp - 0x418]
lea ecx, [ecx - 0x10]
call fcn.00407890
add eax, 0x10
lea ecx, [ebp - 0x448]
mov dword [esi], eax
call fcn.00418730
xor ecx, ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x418]
cmp eax, 0xffffffff
mov eax, edi
setne cl
add edx, 0xfffffff0
mov dword [ebp - 0x41c], ecx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fb77
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x41c]
test ecx, ecx
je 0x40fb92
push 0x4a4d44
push str.none
push str.server_run
call fcn.00434c20
add esp, 0xc
push str._DREP
lea ecx, [ebp - 0x418]
call fcn.004075e0
push ecx
mov byte [ebp - 4], 0xd
mov esi, esp
mov dword [ebp - 0x420], esi
mov ecx, dword [ebp - 0x418]
lea ecx, [ecx - 0x10]
call fcn.00407890
add eax, 0x10
lea ecx, [ebp - 0x448]
mov dword [esi], eax
call fcn.00418730
xor ecx, ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x418]
cmp eax, 0xffffffff
mov eax, edi
setne cl
add edx, 0xfffffff0
mov dword [ebp - 0x41c], ecx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fc02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x41c]
test ecx, ecx
je 0x40fc2f
cmp dword [0x4c5d14], 0
jne 0x40fc2a
push 4
call fcn.0045fcc9
mov dword [ebp - 0x420], eax
add esp, 4
mov dword [0x4c5d14], eax
mov dword [eax], vtable.CDeviceEnvMgr.0
call fcn.00409bc0
push str._SCS
lea ecx, [ebp - 0x418]
call fcn.004075e0
push ecx
mov byte [ebp - 4], 0xe
mov esi, esp
mov dword [ebp - 0x420], esi
mov ecx, dword [ebp - 0x418]
lea ecx, [ecx - 0x10]
call fcn.00407890
add eax, 0x10
lea ecx, [ebp - 0x448]
mov dword [esi], eax
call fcn.00418730
xor ecx, ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x418]
cmp eax, 0xffffffff
mov eax, edi
setne cl
add edx, 0xfffffff0
mov dword [ebp - 0x41c], ecx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fc9f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x41c]
test ecx, ecx
je 0x40fd5c
call fcn.00402960
mov ecx, eax
test ecx, ecx
jne 0x40fcbc
push 0x80004005
call fcn.004029e0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0xf
push eax
push ecx
mov ecx, esp
push str._SCS
call fcn.004075e0
lea ecx, [ebp - 0x448]
call fcn.00418ae0
mov esi, dword [ebp - 0x418]
push 0x4a5c0c
push esi
call fcn.0046bce8
add esp, 8
test eax, eax
jne 0x40fd11
push 0x4a4d44
push str.fail
jmp 0x40fd34
push 0x4a5c10
push esi
call fcn.0046bce8
add esp, 8
push 0x4a4d44
test eax, eax
jne 0x40fd2f
push str.cancel
jmp 0x40fd34
push 0x49fa68
push str.server_call_speedup
call fcn.00434c20
add esp, 0xc
mov byte [ebp - 4], 5
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40fd5c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - method.CCheckCloudConfigMgr.virtual_0], vtable.CCheckCloudConfigMgr.0
push 0x4a5c14
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 0x10
call fcn.004075e0
push ecx
mov byte [ebp - 4], 0x11
mov esi, esp
mov dword [ebp - 0x420], esi
mov ecx, dword [ebp - 0x418]
lea ecx, [ecx - 0x10]
call fcn.00407890
add eax, 0x10
lea ecx, [ebp - 0x448]
mov dword [esi], eax
call fcn.00418730
xor ecx, ecx
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x418]
cmp eax, 0xffffffff
mov eax, edi
setne cl
add edx, 0xfffffff0
mov dword [ebp - 0x41c], ecx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fdda
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x41c]
test ecx, ecx
je 0x40fe23
mov eax, dword [0x4c3628]
mov dword [ebp - 0x42c], 0
test eax, eax
jne 0x40fe15
push 0x48
call fcn.0045fcc9
add esp, 4
mov dword [ebp - 0x420], eax
mov ecx, eax
mov byte [ebp - 4], 0x12
call fcn.00408a60
mov byte [ebp - 4], 0x10
mov dword [0x4c3628], eax
lea ecx, [ebp - 0x454]
push ecx
mov ecx, eax
call fcn.004090e0
push str._ChckePDF
lea ecx, [ebp - 0x418]
call fcn.004075e0
push ecx
mov byte [ebp - 4], 0x13
mov esi, esp
mov dword [ebp - 0x420], esi
mov ecx, dword [ebp - 0x418]
lea ecx, [ecx - 0x10]
call fcn.00407890
add eax, 0x10
lea ecx, [ebp - 0x448]
mov dword [esi], eax
call fcn.00418730
xor ecx, ecx
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x418]
cmp eax, 0xffffffff
mov eax, edi
setne cl
add edx, 0xfffffff0
mov dword [ebp - 0x41c], ecx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fe93
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x41c]
test ecx, ecx
je 0x40fee3
push str.___RunningHelper_check_pdf_Assoc___
call ebx
call fcn.00408530
test eax, eax
je 0x40fedc
push str.___RunningHelper_check_pdf_Assoc_False___
call ebx
push ecx
mov ecx, esp
push 0x4a4d44
call fcn.004075e0
call fcn.004291a0
add esp, 4
push 0x4a4d44
push str.none
push str.revise_assoc
call fcn.00434c20
add esp, 0xc
jmp 0x40fee3
push str.___RunningHelper_check_pdf_Assoc_True___
call ebx
push ecx
mov ecx, esp
push str._shellextshow
call fcn.004075e0
lea ecx, [ebp - 0x448]
call fcn.004188f0
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ffa2
push str.PDEngine
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x40ff4c
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x428], 0x3e8
push ecx
push 0
push 0x4a
push eax
mov dword [ebp - 0x424], 4
mov dword [ebp - 0x420], str.test
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40ffa2
push ecx
mov edx, str.PDFEngine.exe
lea ecx, [ebp - 0x418]
call fcn.0041e0a0
add esp, 4
push dword [ebp - 0x418]
call esi
test eax, eax
je 0x40ff85
push 1
push 0
push str._shellextshow
push dword [ebp - 0x418]
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0x418]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ffa2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ebp - 0x480], 0
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], eax
mov dword [ebp - method.CEndSessionMgr.1.virtual_0], vtable.CEndSessionMgr.1.0
mov dword [ebp - method.CEndSessionMgr.virtual_0], vtable.CEndSessionMgr.0
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x14
push str._enableServer
call fcn.004075e0
lea ecx, [ebp - 0x448]
call fcn.004188f0
test eax, eax
je 0x41001e
lea ecx, [ebp - 0x484]
mov dword [ebp - 0x42c], 0
call fcn.0040a660
push ecx
mov ecx, esp
push str._enableServerNow
call fcn.004075e0
lea ecx, [ebp - 0x448]
call fcn.004188f0
test eax, eax
je 0x410050
mov dword [ebp - 0x42c], 1
call fcn.0040a8b0
push str.enableServerNow_run_finished
call ebx
lea ecx, [ebp - 0x4b8]
call fcn.00403f00
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x15
push str._forceActive
call fcn.004075e0
lea ecx, [ebp - 0x448]
call fcn.004188f0
test eax, eax
je 0x4100b5
push dword [ebp - 0x488]
call esi
test eax, eax
je 0x4100b5
push dword [ebp - 0x488]
push 1
push str.Activate
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4100b5
lea ecx, [ebp - 0x4b8]
call fcn.00404b40
push str._checkActive
lea ecx, [ebp - 0x418]
call fcn.004075e0
push ecx
mov byte [ebp - 4], 0x16
mov esi, esp
mov dword [ebp - 0x420], esi
mov ecx, dword [ebp - 0x418]
lea ecx, [ecx - 0x10]
call fcn.00407890
add eax, 0x10
lea ecx, [ebp - 0x448]
mov dword [esi], eax
call fcn.00418730
xor ebx, ebx
mov byte [ebp - 4], 0x15
mov edx, dword [ebp - 0x418]
cmp eax, 0xffffffff
mov eax, edi
setne bl
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410119
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x410132
lea ecx, [ebp - 0x4b8]
mov dword [ebp - 0x42c], 0
call fcn.00404420
push ecx
mov ecx, esp
push str._launchMainProg
call fcn.004075e0
lea ecx, [ebp - 0x448]
call fcn.004188f0
test eax, eax
jne 0x41018a
push ecx
mov ecx, esp
push str._startmenu
call fcn.004075e0
lea ecx, [ebp - 0x448]
call fcn.004188f0
test eax, eax
jne 0x41018a
push ecx
mov ecx, esp
push str._taskbar
call fcn.004103d0
lea ecx, [ebp - 0x448]
call fcn.004188f0
test eax, eax
je 0x410272
lea ecx, [ebp - 0x418]
call fcn.0041e1f0
push dword [ebp - 0x418]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410251
push str.Globalmasterpdf_server_event_C33B7EE9753C
push 0
push 2
mov byte [ebp - 4], 0x18
call dword [sym.imp.KERNEL32.dll_OpenEventW]
push str.Globalmasterpdf_server_mapping_C33B7EE9753C
push 0
mov esi, eax
push 2
mov dword [ebp - 0x420], esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
je 0x410207
test esi, esi
je 0x410207
sub esp, 8
lea ecx, [ebp - 0x424]
push dword [ebp - 0x418]
call fcn.0043b830
mov esi, dword [ebp - 0x420]
mov ebx, dword [ebp - 0x424]
test eax, eax
jns 0x410239
sub esp, 0x10
mov dword [ebp - 0x420], 0xffffffff
push dword [ebp - 0x418]
call fcn.004190a0
test eax, eax
jne 0x410239
push 1
push eax
push eax
push dword [ebp - 0x418]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41024a
push esi
call eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x410251
push ebx
call eax
mov byte [ebp - 4], 0x15
mov eax, edi
mov edx, dword [ebp - 0x418]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410272
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x42c], 0
je 0x41027f
xor esi, esi
jmp 0x41028c
mov ecx, dword [ebp - 0x458]
call fcn.00410910
mov esi, eax
lea ecx, [ebp - 0x4b8]
call fcn.00404070
push dword [ebp - 0x480]
mov dword [ebp - method.CEndSessionMgr.1.virtual_0], vtable.CEndSessionMgr.1.0
mov dword [ebp - method.CEndSessionMgr.virtual_0], vtable.CEndSessionMgr.0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4102c7
push dword [ebp - 0x480]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x470]
mov dword [ebp - method.CSingletonBase_class_CEndSessionMgr_.virtual_0], vtable.CSingletonBase_class_CEndSessionMgr_.0
test eax, eax
je 0x4102e1
push eax
call fcn.0045d31f
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x430]
mov dword [ebp - method.CCheckCloudConfigMgr.virtual_0], vtable.CCheckCloudConfigMgr.0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41030c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x450]
lea ecx, [ebp - 0x450]
push eax
push dword [eax]
lea eax, [ebp - 0x420]
push eax
call fcn.00410500
push dword [ebp - 0x450]
call fcn.0045f7d3
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp - 0x444]
test ecx, ecx
je 0x41035f
mov edx, dword [ebp - 0x440]
call fcn.0040c210
push dword [ebp - 0x444]
call fcn.00465547
add esp, 4
mov edx, dword [ebp - 0x448]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x41037a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045f7d8
mov esp, ebp
pop ebp
ret