Function at 0x40e8f0
Capabilities:
Create directory
Create thread
Hide graphical window

Disassembly:
sub esp, 0xcc8
mov eax, dword [0x4751f0]
xor eax, esp
mov dword [esp + 0xcc4], eax
mov eax, dword [esp + 0xccc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xce0]
push edi
xor edi, edi
push edi
mov dword [esp + 0x18], eax
mov dword [0x476938], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push str.C:install.log
call fcn.0040f9e0
push 1
call fcn.004187f0
add esp, 8
call fcn.00419130
call fcn.004184a0
test eax, eax
jne 0x40e950
mov dword [0x474488], edi
push 0x208
lea eax, [esp + 0x6c0]
push edi
push eax
call fcn.004449b0
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 0xc
push edi
push edi
push 0xffffffffffffffff
push esi
push edi
push edi
call ebp
push eax
lea ecx, [esp + 0x6c0]
push ecx
push 0xffffffffffffffff
push esi
push edi
push edi
call ebp
xor edx, edx
lea eax, [esp + 0x6bc]
mov word [esp + 0x38], dx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40e9a2
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x6c0]
push eax
lea ecx, [esp + 0x3c]
call fcn.00403400
push 1
push edi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x1c], 0x20
call fcn.004019c0
mov esi, eax
push esi
push edi
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x40]
call fcn.004041f0
mov eax, dword [esp + 0x48]
push eax
inc esi
push esi
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x40]
call fcn.004041f0
mov eax, dword [esp + 0x1c]
mov esi, 8
cmp dword [esp + 0x30], esi
jae 0x40ea16
lea eax, [esp + 0x1c]
push 0x461670
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40ea47
push str..WinMain.cpp
push 0xf9
push str.Line_no_d_source_s_current_build_mode_is_silent_r_n
call fcn.0040c370
add esp, 0xc
mov dword [0x4766dc], 1
mov eax, dword [0x4744c8]
cmp dword [0x4744dc], esi
jae 0x40ea59
mov eax, 0x4744c8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40eaa0
cmp dword [0x4744dc], esi
mov esi, dword [0x4744c8]
jae 0x40ea80
mov esi, 0x4744c8
call ebx
push eax
push esi
push str..WinMain.cpp
push 0x100
push str.Line_no_d_source_s_create_directory___s__failed_error_d._r_n
call fcn.0040c370
add esp, 0x14
mov esi, 8
mov eax, dword [0x4744ac]
cmp dword [0x4744c0], esi
jae 0x40eab2
mov eax, 0x4744ac
push eax
call fcn.00417f70
add esp, 4
test eax, eax
jne 0x40eb0d
mov eax, dword [0x4744ac]
cmp dword [0x4744c0], esi
jae 0x40ead1
mov eax, 0x4744ac
push 0
push eax
call edi
test eax, eax
jne 0x40eb0d
cmp dword [0x4744c0], esi
mov esi, dword [0x4744ac]
jae 0x40eaed
mov esi, 0x4744ac
call ebx
push eax
push esi
push str..WinMain.cpp
push 0x105
push str.Line_no_d_source_s_create_directory___s__failed_error_d._r_n
call fcn.0040c370
add esp, 0x14
mov esi, 8
call fcn.0040d850
test eax, eax
jne 0x40eb89
xor ebx, ebx
push ebx
call fcn.004192b0
add esp, 4
call fcn.0040c370
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x30], esi
jb 0x40eb3f
mov edx, dword [esp + 0x1c]
push edx
call fcn.0044475c
add esp, 4
xor eax, eax
mov edi, 7
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], ax
cmp dword [esp + 0x68], esi
jb 0x40eb66
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0044475c
add esp, 4
xor edx, edx
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], dx
cmp dword [esp + 0x4c], esi
jb 0x40ee4c
mov eax, dword [esp + 0x38]
push eax
jmp 0x40ee44
push 0x208
lea ecx, [esp + 0x8c8]
push 0
push ecx
call fcn.004449b0
push 0x208
lea edx, [esp + 0x2bc]
push 0
push edx
call fcn.004449b0
lea eax, [esp + 0x2c4]
push eax
call fcn.00418fe0
add esp, 0x1c
test eax, eax
je 0x40ed6a
lea ecx, [esp + 0x8c4]
push ecx
call fcn.00418690
add esp, 4
test eax, eax
je 0x40ed6a
cmp dword [0x4766dc], 0
jne 0x40ee69
push 0x208
lea edx, [esp + 0x4b8]
push 0
push edx
call fcn.004449b0
lea eax, [esp + 0x78]
push 0xf
push eax
call fcn.00419370
lea ecx, [esp + 0x9c]
push 0x14
push ecx
call fcn.00419370
push 0x208
lea edx, [esp + 0xc4]
push 0
push edx
call fcn.004449b0
mov eax, dword [esp + 0xb4]
add esp, 0x28
cmp dword [esp + 0xa0], esi
jae 0x40ec4b
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [esp + 0x8c4]
push ecx
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0x4bc]
push eax
call fcn.00401040
mov eax, dword [esp + 0x7c]
add esp, 0xc
cmp dword [esp + 0x84], esi
jae 0x40ec8b
lea eax, [esp + 0x70]
push 0x64
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x98], esp
push 0xffffffffffffffff
push eax
call fcn.0041a58e
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x11c], esp
push 0xffffffffffffffff
lea edx, [esp + 0x5c4]
push edx
call fcn.0041a58e
push 0
call fcn.004012f0
add esp, 0x110
cmp eax, 1
je 0x40ed1e
push 0
call fcn.004192b0
add esp, 4
call fcn.0040c370
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x88]
call fcn.00402300
lea ecx, [esp + 0x6c]
call fcn.00402300
lea ecx, [esp + 0x18]
call fcn.00402300
lea ecx, [esp + 0x50]
call fcn.00402300
lea ecx, [esp + 0x34]
call fcn.00402300
jmp 0x40ee4c
lea ecx, [esp + 0x88]
call fcn.00402300
lea ecx, [esp + 0x6c]
call fcn.00402300
lea ecx, [esp + 0x2ac]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esp + eax*2 + 0x2aa], 0x5c
lea eax, [esp + eax*2 + 0x2aa]
jne 0x40ed58
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x2ac]
push eax
mov ecx, 0x47448c
call fcn.004041c0
cmp dword [0x4766dc], 0
jne 0x40ef2a
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0041bf00
push 0x518
call fcn.00445318
add esp, 8
test eax, eax
je 0x40ede8
mov ecx, eax
call fcn.004087f0
mov esi, eax
test esi, esi
je 0x40ede3
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0
push 0x80000
push 0
push 0
mov ecx, esi
call fcn.0041b2a3
mov ecx, esi
call fcn.0041ae93
push 1
mov ecx, esi
call fcn.0041a1e7
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0041f0f2
mov esi, 8
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x30], esi
jb 0x40ee01
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0044475c
add esp, 4
xor ebx, ebx
xor edx, edx
mov edi, 7
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], dx
cmp dword [esp + 0x68], esi
jb 0x40ee2a
mov eax, dword [esp + 0x54]
push eax
call fcn.0044475c
add esp, 4
xor ecx, ecx
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], cx
cmp dword [esp + 0x4c], esi
jb 0x40ee4c
mov edx, dword [esp + 0x38]
push edx
call fcn.0044475c
add esp, 4
mov ecx, dword [esp + 0xcd4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00444b03
add esp, 0xcc8
ret 0x10
push 0x104
lea eax, [esp + 0x4b8]
push 0
push eax
call fcn.004449b0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x4b8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x208
lea edx, [esp + 0xad0]
push 0
push edx
call fcn.004449b0
push 0x104
lea eax, [esp + 0xb4]
push 0
push eax
call fcn.004449b0
lea ecx, [esp + 0xbc]
push ecx
lea edx, [esp + 0x4d0]
push edx
call fcn.00401170
add esp, 0x20
push 0x104
lea eax, [esp + 0xad0]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0xb0]
push ecx
push 0
push 0
call ebp
lea edx, [esp + 0x8c4]
push edx
lea eax, [esp + 0xad0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jg 0x40ed33
push 0
call fcn.004192b0
add esp, 4
call fcn.0040c370
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x40ecfe
push str.InstallWnd
call fcn.004184d0
add esp, 4
test eax, eax
je 0x40ede8
push 0x476690
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x460648
lea edx, [esp + 0x2b0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40efdf
push 0x208
lea eax, [esp + 0xa8]
push 0
push eax
call fcn.004449b0
push str.ADSafeSvc.exe
lea ecx, [esp + 0x2bc]
push ecx
lea edx, [esp + 0xb8]
push 0x460224
push edx
call fcn.00401040
push 1
push 0
lea eax, [esp + 0xc8]
push str._stop
push eax
call fcn.00418520
push 0
push 0
lea ecx, [esp + 0xd8]
push str._uninstall
push ecx
call fcn.00418520
push str.ADSafeSvc.exe
call fcn.00418350
add esp, 0x40
push str.ADSafe.exe
call fcn.00418350
add esp, 4
call fcn.00418390
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0
call fcn.0040d360
test al, al
je 0x40f001
push 0x400
call fcn.0040d660
jmp 0x40f018
push str..WinMain.cpp
push 0x170
push str.Line_no_d_source_s_IsNeedModifyTcpipLimits_return_true._r_n
call fcn.0040c370
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x4073c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x476690
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00405a50
call fcn.004029d0
call fcn.004058f0
call fcn.004049f0
push 0
call fcn.00404920
add esp, 4
call fcn.00405300
call fcn.00401cf0
push 0x476690
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x476690
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0
call fcn.004192b0
add esp, 4
jmp 0x40ede8