Function at 0x52e630
Capabilities:
Get common file path
Get hostname
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ade0e
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x6370
call fcn.0056e430
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x6380]
mov dword [ebp - 0x6380], eax
xor eax, eax
mov dword [ebp - 0x6380], 0x618670
mov dword [0x618670], 0x5dfc64
mov dword [0x6187c4], 0
mov dword [0x6187c8], 7
mov word [0x6187b4], ax
push 0x11c
push eax
push 0x618674
mov dword [ebp - 4], eax
call fcn.00571c00
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
mov dword [0x618674], 0x11c
push 0x618674
call esi
test eax, eax
jne 0x52e6f3
push 0x618674
mov dword [0x618674], 0x114
call esi
push ecx
push str.COsVersionInfo::ParseProcessor
lea ecx, [ebp - 0x6378]
call fcn.0040a480
mov byte [ebp - 4], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x52e748
test byte [ecx + 0x1c], 1
je 0x52e748
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5e0380
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xa
call fcn.00401840
add esp, 0xc
xorps xmm0, xmm0
mov dword [0x6187b0], 0
push 0x618790
movups xmmword [0x618790], xmm0
movups xmmword [0x6187a0], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [0x618790]
movzx ecx, ax
test ecx, ecx
je 0x52e79d
cmp ecx, 9
mov ecx, 0x6187b4
je 0x52e794
cmp ax, 0xc
jne 0x52e7a2
push 0xd
push 0x5c6aec
jmp 0x52e7a9
push 0xb
push str.Windows_x64
jmp 0x52e7a9
mov ecx, 0x6187b4
push 0xe
push str.Windows_NT_x86
call fcn.004035d0
mov byte [ebp - 0x6374], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x52e7f5
test byte [ecx + 0x1c], 1
je 0x52e7f5
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5e0380
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xb
call fcn.00401840
add esp, 0xc
lea ecx, [ebp - 0x6378]
call fcn.0040a570
mov dword [ebp - 4], 2
mov dword [0x618670], 0x5dfc50
mov dword [0x6187e0], 7
mov dword [0x6187f8], 7
mov dword [0x618810], 7
mov dword [0x618828], 7
mov dword [0x618840], 7
mov dword [0x618858], 7
mov dword [0x618870], 7
xor eax, eax
mov byte [ebp - 4], 9
push 0x1000
push eax
mov word [0x6187cc], ax
mov dword [0x6187f4], eax
mov word [0x6187e4], ax
mov dword [0x61880c], eax
mov word [0x6187fc], ax
mov dword [0x618824], eax
mov word [0x618814], ax
mov dword [0x61883c], eax
mov word [0x61882c], ax
mov dword [0x618854], eax
mov word [0x618844], ax
mov dword [0x61886c], eax
mov word [0x61885c], ax
lea eax, [ebp - 0x5340]
push eax
mov dword [0x6187dc], 0
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x4340]
push 0x1000
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x1330]
push 0x1000
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x3340]
push 0x1000
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x5340]
push 0x800
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x52ed0e
push 0x800
lea eax, [ebp - 0x4340]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x52ed0e
lea eax, [ebp - 0x1330]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x52ed0e
push 0x800
lea eax, [ebp - 0x3340]
push eax
push dword [0x618644]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x52ed0e
lea ecx, [ebp - 0x5340]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52e980
sub ecx, edx
lea eax, [ebp - 0x5340]
sar ecx, 1
push ecx
push eax
mov ecx, 0x6187cc
call fcn.004035d0
lea ecx, [ebp - 0x4340]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52e9b0
sub ecx, edx
lea eax, [ebp - 0x4340]
sar ecx, 1
push ecx
push eax
mov ecx, 0x6187e4
call fcn.004035d0
lea ecx, [ebp - 0x3340]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52e9e0
sub ecx, edx
lea eax, [ebp - 0x3340]
sar ecx, 1
push ecx
push eax
mov ecx, 0x61882c
call fcn.004035d0
lea eax, [ebp - 0x1330]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x104
push 0
lea esi, [eax - 1]
lea eax, [ebp - 0x230]
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x128]
push 0x104
push 0
push eax
call fcn.00571c00
add esp, 0xc
mov dword [ebp - 0x637c], 0
lea eax, [ebp - 0x637c]
push eax
push 0x5c8003
push 0x104
lea eax, [ebp - 0x230]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1330]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x637c]
push eax
push 0x5c8003
push 0x104
lea eax, [ebp - 0x128]
push eax
lea edi, [esi + esi]
push 0xffffffffffffffff
lea esi, [ebp - 0x1330]
add esi, edi
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00582d1b
add esp, 8
cmp word [esi], 0x5c
jne 0x52eaed
cmp eax, 0xffffffff
je 0x52eaed
cmp edi, 0x1000
jae 0x52ed94
xor eax, eax
lea ecx, [ebp - 0x1330]
mov word [esi], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52eae0
jmp 0x52eb01
lea ecx, [ebp - 0x1330]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52eaf6
sub ecx, edx
lea eax, [ebp - 0x1330]
sar ecx, 1
push ecx
push eax
mov ecx, 0x618814
call fcn.004035d0
push 0x100a
lea eax, [ebp - 0x2340]
push 0
push eax
call fcn.00571c00
add esp, 0xc
mov word [ebp - 0x18], 0
lea eax, [ebp - 0x6340]
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
push 0x1000
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x6340]
push 0
push 0
push 0
push 0
push 0x800
push eax
push 5
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x3340]
push eax
call fcn.00580f0a
add esp, 0x24
lea eax, [ebp - 0x6340]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2340]
push 0x5c70f4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x2340]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x104
push 0
lea esi, [eax - 1]
lea eax, [ebp - 0x128]
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x230]
push 0x104
push 0
push eax
call fcn.00571c00
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x637c]
add esp, 0xc
mov dword [ebp - 0x637c], 0
push eax
push 0x5c8003
push 0x104
lea eax, [ebp - 0x128]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1330]
push eax
push 0
push 0
call edi
lea eax, [ebp - 0x637c]
add esi, esi
push eax
push 0x5c8003
push 0x104
lea eax, [ebp - 0x230]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1330]
add eax, esi
push eax
push 0
push 0
call edi
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00582d1b
add esp, 8
cmp word [ebp + esi - 0x2340], 0x5c
jne 0x52ec8d
cmp eax, 0xffffffff
je 0x52ec8d
cmp esi, 0x100a
jae 0x52ed94
xor eax, eax
lea ecx, [ebp - 0x2340]
mov word [ebp + esi - 0x2340], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52ec80
jmp 0x52eca1
lea ecx, [ebp - 0x2340]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52ec96
sub ecx, edx
lea eax, [ebp - 0x2340]
sar ecx, 1
push ecx
push eax
mov ecx, 0x618844
call fcn.004035d0
push 0
push 0
push 0
push 0
push 0
push 0
push 5
lea eax, [ebp - 0x20]
mov word [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x4340]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x20], xmm0
call fcn.00580f0a
lea ecx, [ebp - 0x20]
add esp, 0x24
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52ecf0
sub ecx, edx
lea eax, [ebp - 0x20]
sar ecx, 1
push ecx
push eax
mov ecx, 0x6187fc
call fcn.004035d0
push 0x208
lea eax, [ebp - 0x330]
push 0
push eax
call fcn.00571c00
add esp, 0xc
mov dword [ebp - 0x637c], 0x104
lea eax, [ebp - 0x637c]
push eax
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x52ed71
lea ecx, [ebp - 0x330]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52ed50
sub ecx, edx
lea eax, [ebp - 0x330]
sar ecx, 1
push ecx
push eax
mov ecx, 0x61885c
call fcn.004035d0
mov eax, 0x618670
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0056e17a
int3