Function at 0x52e290
Capabilities:
Accept command line arguments
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e4fb
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [0x59fb34], 0
jne 0x52e6a3
push 0x24
push 0x575544
push 0x575528
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x52e6a8
lea ecx, [ebp - 0x58]
call fcn.004cd490
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x52e302
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x68]
call fcn.00401ff0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x52e324
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00403010
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x52e354
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x52e369
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x52e36d
mov ecx, edx
call esi
add eax, 0x10
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x60]
push dword [ebx + 0x434]
push str._sTxGameUninstall.exe
push eax
call fcn.004023f0
mov esi, dword [ebp - 0x60]
add esp, 0xc
push 0
push esi
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x5c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x64], eax
test eax, eax
je 0x52e46c
mov edi, 1
cmp dword [ebp - 0x5c], edi
jle 0x52e465
mov esi, eax
nop dword [eax + eax]
push str._from
push dword [esi + edi*4]
call fcn.004a689d
add esp, 8
test eax, eax
jne 0x52e407
inc edi
jmp 0x52e459
push 2
push 0x575628
lea ecx, [ebp - 0x28]
call fcn.004043f0
mov edx, dword [esi + edi*4]
cmp word [edx], 0
jne 0x52e423
xor ecx, ecx
jmp 0x52e440
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x6c], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52e430
sub ecx, dword [ebp - 0x6c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004043f0
push 1
push 0x575624
lea ecx, [ebp - 0x28]
call fcn.004043f0
inc edi
cmp edi, dword [ebp - 0x5c]
jl 0x52e3f0
mov esi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x11
push str.__uninstallworker
lea ecx, [ebp - 0x28]
call fcn.004043f0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp word [esi], ax
jne 0x52e498
xor ecx, ecx
jmp 0x52e4af
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52e4a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00405040
push 0x38
lea eax, [ebp - 0xa4]
push 0
push eax
call fcn.0049e130
add esp, 0xc
mov dword [ebp - 0xa8], 0x3c
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0xa0], 0
cmovae eax, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0x9c], 0x555194
mov dword [ebp - 0x8c], 1
mov dword [ebp - 0xa4], 0x400
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x52e537
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x52e590
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
jbe 0x52e54f
call fcn.004a4e3e
add eax, eax
cmp eax, 0x1000
jb 0x52e587
test byte [ebp - 0x40], 0x1f
je 0x52e563
call fcn.004a4e3e
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x52e56f
call fcn.004a4e3e
sub ecx, eax
cmp ecx, 4
jae 0x52e57b
call fcn.004a4e3e
cmp ecx, 0x23
jbe 0x52e585
call fcn.004a4e3e
mov ecx, eax
push ecx
call fcn.0049aa1d
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
push eax
push eax
push eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x3b4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x52e61e
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
jbe 0x52e5dd
call fcn.004a4e3e
add eax, eax
cmp eax, 0x1000
jb 0x52e615
test byte [ebp - 0x28], 0x1f
je 0x52e5f1
call fcn.004a4e3e
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x52e5fd
call fcn.004a4e3e
sub ecx, eax
cmp ecx, 4
jae 0x52e609
call fcn.004a4e3e
cmp ecx, 0x23
jbe 0x52e613
call fcn.004a4e3e
mov ecx, eax
push ecx
call fcn.0049aa1d
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
or edi, 0xffffffff
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], 0
add esi, 0xfffffff0
mov byte [ebp - 4], 2
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x52e66b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x52e669
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x52e66b
call edx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x68]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edi
dec edi
test edi, edi
jg 0x52e6cc
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x52e69d
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x52e6cc
mov ecx, edx
call esi
jmp 0x52e6cc
call fcn.0052cf70
push 0
push 0
push 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x3b4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret