Function at 0x4a5780
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.00483350
mov ecx, eax
test ecx, ecx
je 0x4a5c43
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 0x4a57c6
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.00483270
add esp, 0x10
cmp dword [ebx + 0x16c], 0
je 0x4a5843
cmp dword [ebx + 0x184], 0
je 0x4a5843
cmp dword [ebx + 0x19c], 0
je 0x4a5843
cmp dword [ebx + 0x1a0], 8
lea eax, [ebx + 0x18c]
jb 0x4a580a
mov eax, dword [eax]
cmp dword [ebx + 0x188], 8
lea ecx, [ebx + 0x174]
jb 0x4a581b
mov ecx, dword [ecx]
cmp dword [ebx + 0x170], 8
lea edx, [ebx + 0x15c]
jb 0x4a582c
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.0048bf60
add esp, 0x14
cmp dword [ebx + 0x10c], 0
je 0x4a5872
cmp dword [ebx + 0x110], 8
lea eax, [ebx + 0xfc]
jb 0x4a585d
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x240]
push str.___ochannel__s_
push eax
call fcn.0048bf60
add esp, 0xc
cmp dword [ebx + 0x124], 0
je 0x4a58a1
cmp dword [ebx + 0x128], 8
lea eax, [ebx + 0x114]
jb 0x4a588c
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x240]
push str.___channel__s_
push eax
call fcn.0048bf60
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 0x4a5be7
lea ecx, [ebp - 0x248]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4a5b75
push dword [ebp - 0x248]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x4a5b75
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 0x4a5b75
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.004a2360
lea eax, [ebx + 0x12c]
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4a5940
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.004a2360
add esp, 8
lea esi, [ebp - 0x23c]
cmp dword [ebp - 0x228], 8
jb 0x4a5965
mov esi, dword [ebp - 0x23c]
cmp dword [ebp - 0x210], 8
lea eax, [ebp - 0x224]
jb 0x4a597a
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x260], 0
push ecx
push 0x4fc690
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.004a63f0
lea eax, [ebp - 0x254]
push eax
push 0x4fc690
push esi
call fcn.004a63f0
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 0x4a5a31
mov ecx, esi
mov dword [ebp - 0x244], ecx
jmp 0x4a5a39
mov ecx, eax
mov dword [ebp - 0x244], eax
xor eax, eax
mov dword [ebp - 0x240], eax
test ecx, ecx
je 0x4a5a94
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 0x4a5aa2
inc eax
add esi, 0x18
cmp eax, dword [ebp - 0x244]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x268]
jb 0x4a5a60
mov esi, dword [ebp - 0x26c]
mov eax, dword [ebp - 0x270]
cmp eax, esi
jne 0x4a5aee
xor esi, esi
jmp 0x4a5afc
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 0x4a5ac4
mov eax, dword [eax]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x254]
add eax, ecx
cmp dword [eax + 0x14], 8
jb 0x4a5ad4
mov eax, dword [eax]
push eax
call fcn.004ccf3f
push dword [ebp - 0x244]
mov esi, eax
call fcn.004ccf3f
add esp, 8
sub eax, esi
jmp 0x4a5af4
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 0x4a5b5f
push dword [ebp - 0x248]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4a5b3c
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.004a5730
lea ecx, [ebp - 0x224]
call fcn.00407320
lea ecx, [ebp - 0x23c]
call fcn.00407320
jmp 0x4a5c1a
lea ecx, [ebp - 0x224]
call fcn.00407320
lea ecx, [ebp - 0x23c]
call fcn.00407320
call fcn.00483350
mov ecx, eax
test ecx, ecx
je 0x4a5c4d
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 0x4a5ba0
mov ebx, dword [ebx]
push edi
push ebx
lea eax, [ebp - 0x244]
push str.__s___s___copydata
push eax
call fcn.0048bf60
mov esi, dword [ebp - 0x244]
push esi
push 0x402
push dword [ebp - 0x274]
call fcn.004a5c60
add esp, 0x1c
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a5c1a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4a5c1a
add ebx, 0x12c
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x4a5bf7
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a5c1a
cmp dword [ebx + 0x14], 8
jb 0x4a5c0a
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 0x4a5c32
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.004c20c9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004831b0
push 0x80004005
call fcn.004831b0
int3