Function at 0x402080
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549a20
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push esi
push edi
mov eax, dword [0x5af040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.00401f70
push 0x104
call fcn.00410704
add esp, 4
mov esi, eax
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esi - 1]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4020d1
mov eax, dword [0x58de5c]
mov dword [ecx], eax
mov eax, dword [0x58de60]
mov dword [ecx + 4], eax
mov eax, dword [0x58de64]
mov dword [ecx + 8], eax
mov ax, word [0x58de68]
mov word [ecx + 0xc], ax
lea ecx, [ebp - 0x10]
push esi
call fcn.00402b10
push 0x58de6c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00402b10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004024e0
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40214b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str._q__norestart__ChainingPackage_FullX64Bootstrapper
lea ecx, [ebp - 0x14]
call fcn.00402420
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004024e0
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40218a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 4], 1
jle 0x4021a1
push dword [ecx - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00402850
mov ecx, dword [ebp - 0x10]
call fcn.00401d60
cmp eax, 0xbc2
je 0x402224
test eax, eax
je 0x402224
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0x10
push 0x5a9c08
cmp eax, 0x1001
je 0x4021f9
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x20], 0x68
movdqu xmm0, xmmword [ebp - 0x2c]
push eax
movdqu xmmword [ebp - 0x44], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [ebp - 0x34], xmm0
call fcn.005329e2
mov dword [ebp - 0x2c], 0x1001
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x20], 0x6c
movdqu xmm0, xmmword [ebp - 0x2c]
push eax
movdqu xmmword [ebp - 0x5c], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [ebp - 0x4c], xmm0
call fcn.005329e2
push 0
push 0
push 0x58de70
call fcn.004143da
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402275
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x402296
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret