Function at 0x408d10
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1d4
mov eax, dword [0x41f030]
xor eax, esp
mov dword [esp + 0x1d0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
xor edi, edi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call esi
cdq
sub eax, edx
sar eax, 1
sub eax, 0x50
push 1
mov dword [esp + 0x28], eax
call esi
cdq
sub eax, edx
sar eax, 1
sub eax, 0x50
push edi
mov dword [esp + 0x2c], eax
call esi
cdq
sub eax, edx
sar eax, 1
add eax, 0x50
push 1
mov dword [esp + 0x30], eax
call esi
mov ebx, dword [sym.imp.USER32.dll_FindWindowExW]
cdq
push str.BaiduAppStoreDeskTool
sub eax, edx
push edi
sar eax, 1
push edi
add eax, 0x50
push edi
mov dword [esp + 0x40], eax
call ebx
push str.softmgr_desk_tool_tip_game
push edi
push edi
push eax
call ebx
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x408f4b
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x408f4b
lea edx, [esp + 0x24]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
sub eax, 0xa0
mov dword [esp + 0x28], eax
mov eax, ecx
sub eax, dword [esp + 0x24]
push edi
cdq
sub eax, edx
sar eax, 1
mov edx, 0x50
sub edx, eax
add ecx, edx
mov dword [esp + 0x30], ecx
call esi
lea ecx, [eax - 0xa]
mov eax, dword [esp + 0x2c]
cmp eax, ecx
jle 0x408e08
mov eax, ecx
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x14]
add eax, 0xffffff60
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edx, edx
cmp dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xf0], 7
mov dword [esp + 0xec], edi
mov word [esp + 0xdc], dx
mov dword [esp + 0x20], edi
jle 0x408ee3
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + ecx*4]
xor edx, edx
mov ecx, eax
mov dword [esp + 0x10c], 7
mov dword [esp + 0x108], edi
mov word [esp + 0xf8], dx
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x408e80
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0xf8]
call fcn.00403480
push str.path
mov ebx, 4
mov eax, esi
call fcn.00409ad0
cmp eax, 0xffffffff
jne 0x408f67
cmp dword [esp + 0x10c], 8
jb 0x408ed0
mov eax, dword [esp + 0xf8]
push eax
call fcn.0040b187
add esp, 4
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
jl 0x408e53
mov esi, 8
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0xec], edi
jne 0x408f0c
lea eax, [esp + 0xd8]
push eax
call fcn.00408a00
add esp, 4
mov eax, dword [esp + 0xdc]
cmp dword [esp + 0xf0], esi
jae 0x408f23
lea eax, [esp + 0xdc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408fe3
cmp dword [esp + 0xf0], esi
jb 0x408f4b
mov ecx, dword [esp + 0xdc]
push ecx
call fcn.0040b187
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d0]
xor ecx, esp
call fcn.0040b192
mov esp, ebp
pop ebp
ret 0x10
push 0x41b53c
mov ebx, 1
lea eax, [esp + 0xf8]
call fcn.00409ad0
lea edx, [esp + 0xf4]
lea ecx, [eax + 1]
push edx
lea esi, [esp + 0xc0]
call fcn.00409590
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0xe0]
call fcn.004030b0
mov esi, 8
cmp dword [esp + 0xd4], esi
jb 0x408fc1
mov eax, dword [esp + 0xc0]
push eax
call fcn.0040b187
add esp, 4
cmp dword [esp + 0x10c], esi
jb 0x408ee8
mov ecx, dword [esp + 0xf8]
push ecx
call fcn.0040b187
add esp, 4
jmp 0x408ee8
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
push edi
push edi
push edi
push edi
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
lea esi, [esp + 0x70]
call fcn.00405a90
mov eax, dword [esp + 0x10]
mov ecx, esi
push ecx
mov dword [esp + 0x74], vtable.WTL::CAppModule.0
mov dword [0x421720], eax
call fcn.00408210
push edi
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0xb8], 1
mov dword [esp + 0xbc], edi
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc4], edi
call sub.gdiplus.dll_GdiplusStartup
mov ebx, dword [0x42164c]
lea ecx, [esp + 0x38]
add ebx, 0x10
push ebx
mov dword [esp + 0x3c], vtable.WTL::CMessageLoop.0
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [esp + 0xa4]
lea edx, [esp + 0x10]
mov dword [esp + 0x14], eax
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00409340
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x110]
push ecx
call fcn.00408610
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], edi
push edi
lea eax, [esp + 0xfc]
mov word [ecx + 4], dx
call fcn.004030b0
lea eax, [esp + 0x12c]
push eax
call fcn.00408840
lea ecx, [esp + 0x130]
push ecx
mov ebx, 0x420658
call fcn.00408470
push ecx
movzx ebx, ax
mov eax, esp
push 0x8080000
push 0x90000000
mov dword [eax], edi
push ecx
mov eax, esp
lea edx, [esp + 0x34]
mov dword [eax], edx
lea eax, [esp + 0x120]
call fcn.00409790
cmp eax, edi
jne 0x409202
lea eax, [esp + 0x110]
push eax
call fcn.004088d0
mov eax, dword [esp + 0x48]
cmp eax, edi
je 0x409164
push eax
call fcn.0040b890
add esp, 4
mov dword [esp + 0x48], edi
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
cmp eax, edi
je 0x409181
push eax
call fcn.0040b890
add esp, 4
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x70], vtable.ATL::CComModule.0
cmp dword [esp + 0x74], edi
je 0x4091cf
cmp dword [esp + 0x7c], edi
je 0x4091aa
lea ebx, [esp + 0x74]
call fcn.00407f40
mov dword [esp + 0x7c], edi
mov eax, dword [esp + 0x98]
cmp eax, edi
je 0x4091bd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [esp + 0x74], edi
cmp dword [esp + 0xf0], 8
jb 0x4091e9
mov ecx, dword [esp + 0xdc]
push ecx
call fcn.0040b187
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d0]
xor ecx, esp
call fcn.0040b192
mov esp, ebp
pop ebp
ret 0x10
lea edi, [esp + 0x38]
call fcn.004080c0
mov edx, dword [esp + 0x34]
push edx
mov edi, eax
call sub.gdiplus.dll_GdiplusShutdown
lea eax, [esp + 0x70]
push eax
call fcn.00408340
lea eax, [esp + 0x70]
call fcn.004082e0
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x110]
push ecx
call fcn.004088d0
mov eax, dword [esp + 0x48]
xor esi, esi
cmp eax, esi
je 0x409254
push eax
call fcn.0040b890
add esp, 4
mov dword [esp + 0x48], esi
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
cmp eax, esi
je 0x409271
push eax
call fcn.0040b890
add esp, 4
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x70], vtable.ATL::CComModule.0
cmp dword [esp + 0x74], esi
je 0x4092bf
cmp dword [esp + 0x7c], esi
je 0x40929a
lea ebx, [esp + 0x74]
call fcn.00407f40
mov dword [esp + 0x7c], esi
mov eax, dword [esp + 0x98]
cmp eax, esi
je 0x4092ad
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [esp + 0x74], esi
cmp dword [esp + 0xf0], 8
jb 0x4092d9
mov edx, dword [esp + 0xdc]
push edx
call fcn.0040b187
add esp, 4
mov ecx, dword [esp + 0x1dc]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040b192
mov esp, ebp
pop ebp
ret 0x10