Function at 0x4a5580
Capabilities:
Check if file exists
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x53ac84]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
call fcn.004833a0
mov ecx, eax
test ecx, ecx
je 0x4a5a43
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
cmp dword [ebx + 0x158], 8
mov dword [ebp - 0x240], eax
lea eax, [ebx + 0x144]
jb 0x4a55c6
mov eax, dword [eax]
push eax
push dword [ebx + 4]
lea eax, [ebp - 0x240]
push str.__user_server___ipc_d___qt_s
push eax
call fcn.004832c0
add esp, 0x10
cmp dword [ebx + 0x16c], 0
je 0x4a5643
cmp dword [ebx + 0x184], 0
je 0x4a5643
cmp dword [ebx + 0x19c], 0
je 0x4a5643
cmp dword [ebx + 0x1a0], 8
lea eax, [ebx + 0x18c]
jb 0x4a560a
mov eax, dword [eax]
cmp dword [ebx + 0x188], 8
lea ecx, [ebx + 0x174]
jb 0x4a561b
mov ecx, dword [ecx]
cmp dword [ebx + 0x170], 8
lea edx, [ebx + 0x15c]
jb 0x4a562c
mov edx, dword [edx]
push eax
push ecx
push edx
lea eax, [ebp - 0x240]
push str.___icon__s____iconIndex__s____server_mark__s_
push eax
call fcn.0048bfb0
add esp, 0x14
cmp dword [ebx + 0x10c], 0
je 0x4a5672
cmp dword [ebx + 0x110], 8
lea eax, [ebx + 0xfc]
jb 0x4a565d
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x240]
push str.___ochannel__s_
push eax
call fcn.0048bfb0
add esp, 0xc
cmp dword [ebx + 0x124], 0
je 0x4a56a1
cmp dword [ebx + 0x128], 8
lea eax, [ebx + 0x114]
jb 0x4a568c
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x240]
push str.___channel__s_
push eax
call fcn.0048bfb0
add esp, 0xc
push 0
push str.UserServer_LoginServer_Class
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, dword [ebp - 0x240]
mov dword [ebp - 0x274], eax
test eax, eax
je 0x4a59e7
lea ecx, [ebp - 0x248]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4a5975
push dword [ebp - 0x248]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x4a5975
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x264], 0x104
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push 0
push eax
call dword [0x4f88cc]
test eax, eax
je 0x4a5975
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.004a23c0
lea eax, [ebx + 0x12c]
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4a5740
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.004a23c0
add esp, 8
lea esi, [ebp - 0x23c]
cmp dword [ebp - 0x228], 8
jb 0x4a5765
mov esi, dword [ebp - 0x23c]
cmp dword [ebp - 0x210], 8
lea eax, [ebp - 0x224]
jb 0x4a577a
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x260], 0
push ecx
push 0x4fc6b0
push eax
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
call fcn.004a61f0
lea eax, [ebp - 0x254]
push eax
push 0x4fc6b0
push esi
call fcn.004a61f0
mov ecx, dword [ebp - 0x25c]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x260]
add esp, 0x18
imul ecx
mov ecx, dword [ebp - 0x250]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x254]
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
imul ecx
mov dword [ebp - 0x26c], esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x270], eax
cmp esi, eax
jae 0x4a5831
mov ecx, esi
mov dword [ebp - 0x244], ecx
jmp 0x4a5839
mov ecx, eax
mov dword [ebp - 0x244], eax
xor eax, eax
mov dword [ebp - 0x240], eax
test ecx, ecx
je 0x4a5894
mov eax, dword [ebp - 0x254]
mov esi, dword [ebp - 0x260]
sub eax, esi
mov dword [ebp - 0x268], eax
lea esp, [esp]
add eax, esi
push eax
push esi
call fcn.00411050
add esp, 8
test al, al
mov eax, dword [ebp - 0x240]
je 0x4a58a2
inc eax
add esi, 0x18
cmp eax, dword [ebp - 0x244]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x268]
jb 0x4a5860
mov esi, dword [ebp - 0x26c]
mov eax, dword [ebp - 0x270]
cmp eax, esi
jne 0x4a58ee
xor esi, esi
jmp 0x4a58fc
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 0x260]
shl ecx, 3
add eax, ecx
mov dword [ebp - 0x244], eax
cmp dword [eax + 0x14], 8
jb 0x4a58c4
mov eax, dword [eax]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x254]
add eax, ecx
cmp dword [eax + 0x14], 8
jb 0x4a58d4
mov eax, dword [eax]
push eax
call fcn.004cce60
push dword [ebp - 0x244]
mov esi, eax
call fcn.004cce60
add esp, 8
sub eax, esi
jmp 0x4a58f4
sbb eax, eax
and eax, 2
dec eax
mov dword [ebp - 0x240], eax
mov esi, eax
lea ecx, [ebp - 0x254]
call fcn.00408ca0
lea ecx, [ebp - 0x260]
call fcn.00408ca0
test esi, esi
jle 0x4a595f
push dword [ebp - 0x248]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4a593c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov ecx, ebx
call fcn.004a5530
lea ecx, [ebp - 0x224]
call fcn.00407320
lea ecx, [ebp - 0x23c]
call fcn.00407320
jmp 0x4a5a1a
lea ecx, [ebp - 0x224]
call fcn.00407320
lea ecx, [ebp - 0x23c]
call fcn.00407320
call fcn.004833a0
mov ecx, eax
test ecx, ecx
je 0x4a5a4d
mov eax, dword [ecx]
call dword [eax + 0xc]
add ebx, 0x12c
add eax, 0x10
mov dword [ebp - 0x244], eax
cmp dword [ebx + 0x14], 8
jb 0x4a59a0
mov ebx, dword [ebx]
push edi
push ebx
lea eax, [ebp - 0x244]
push str.__s___s___copydata
push eax
call fcn.0048bfb0
mov esi, dword [ebp - 0x244]
push esi
push 0x402
push dword [ebp - 0x274]
call fcn.004a5a60
add esp, 0x1c
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a5a1a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4a5a1a
add ebx, 0x12c
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x4a59f7
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a5a1a
cmp dword [ebx + 0x14], 8
jb 0x4a5a0a
mov ebx, dword [ebx]
push 5
push 0
push edi
push ebx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4a5a32
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c1fe9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00483200
push 0x80004005
call fcn.00483200
int3