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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5df448
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x67a114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], 0
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x104
push 0
lea ecx, [ebp - 0x114]
push ecx
call fcn.005aab10
add esp, 0xc
lea ecx, [ebp - 0x18c]
call fcn.00409580
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x174]
call fcn.00409580
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x15c]
call fcn.00409580
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x12c]
call fcn.00409580
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x144]
call fcn.00409580
mov byte [ebp - 4], 4
push 0x104
lea edx, [ebp - 0x114]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x15c]
call fcn.00412fc0
lea ecx, [ebp - 0x15c]
call fcn.00412f80
push eax
push 0x668318
lea ecx, [ebp - 0x15c]
call fcn.00412f10
push eax
push 0
lea ecx, [ebp - 0x1a4]
push ecx
lea ecx, [ebp - 0x15c]
call fcn.00409360
mov dword [ebp - 0x23c], eax
mov edx, dword [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x15c]
call fcn.00413010
lea ecx, [ebp - 0x1a4]
call fcn.004094c0
push 0x104
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x18c]
call fcn.00412fc0
push 0x104
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x174]
call fcn.00412fc0
mov dword [ebp - 0x238], 1
movzx ecx, word [ebp - 0x288]
test ecx, ecx
jne 0x5d660f
push 0x66831c
lea ecx, [ebp - 0x144]
call fcn.00412fc0
jmp 0x5d666a
movzx edx, word [ebp - 0x288]
cmp edx, 9
jne 0x5d662d
push 0x668328
lea ecx, [ebp - 0x144]
call fcn.00412fc0
jmp 0x5d666a
movzx eax, word [ebp - 0x288]
cmp eax, 5
jne 0x5d664b
push str.ATSZIOAM.sys
lea ecx, [ebp - 0x144]
call fcn.00412fc0
jmp 0x5d666a
movzx ecx, word [ebp - 0x288]
push ecx
push str.error:_Unknown_Processor_Architecture:0x_x_n
call fcn.0040f570
add esp, 8
mov dword [ebp - 0x238], 0
cmp dword [ebp - 0x238], 0
je 0x5d6847
lea edx, [ebp - 0x144]
push edx
push 0x668374
lea eax, [ebp - 0x174]
push eax
lea ecx, [ebp - 0x1d4]
push ecx
call fcn.005d6230
mov dword [ebp - 0x240], eax
mov edx, dword [ebp - 0x240]
mov dword [ebp - 0x244], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x244]
push eax
lea ecx, [ebp - 0x1bc]
push ecx
call fcn.005d61f0
mov dword [ebp - 0x248], eax
mov edx, dword [ebp - 0x248]
push edx
lea ecx, [ebp - 0x12c]
call fcn.00413010
lea ecx, [ebp - 0x1bc]
call fcn.004094c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1d4]
call fcn.004094c0
lea ecx, [ebp - 0x12c]
call fcn.00409420
push eax
call fcn.005d6bb0
test eax, eax
je 0x5d670b
jmp 0x5d6838
lea eax, [ebp - 0x144]
push eax
push 0x668378
lea ecx, [ebp - 0x18c]
push ecx
lea edx, [ebp - 0x204]
push edx
call fcn.005d6230
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x250]
push ecx
lea edx, [ebp - 0x1ec]
push edx
call fcn.005d61f0
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x254]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00413010
lea ecx, [ebp - 0x1ec]
call fcn.004094c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x204]
call fcn.004094c0
lea ecx, [ebp - 0x12c]
call fcn.00409420
push eax
call fcn.005d6bb0
test eax, eax
je 0x5d679f
jmp 0x5d6838
lea ecx, [ebp - 0x144]
push ecx
push 0x66837c
lea edx, [ebp - 0x15c]
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.005d6230
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x258]
mov dword [ebp - 0x25c], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x25c]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.005d61f0
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x12c]
call fcn.00413010
lea ecx, [ebp - 0x21c]
call fcn.004094c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x234]
call fcn.004094c0
lea ecx, [ebp - 0x12c]
call fcn.00409420
push eax
call fcn.005d6bb0
test eax, eax
je 0x5d6830
jmp 0x5d6838
xor edx, edx
jne 0x5d6677
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00412fd0
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x264], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x144]
call fcn.004094c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x12c]
call fcn.004094c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x15c]
call fcn.004094c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x174]
call fcn.004094c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18c]
call fcn.004094c0
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004862cc
mov esp, ebp
pop ebp
ret 4