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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cfa38
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x665024]
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.0059f880
add esp, 0xc
lea ecx, [ebp - 0x18c]
call fcn.00409f80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x174]
call fcn.00409f80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x15c]
call fcn.00409f80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x12c]
call fcn.00409f80
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x144]
call fcn.00409f80
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.00410610
lea ecx, [ebp - 0x15c]
call fcn.004105d0
push eax
push 0x6540c8
lea ecx, [ebp - 0x15c]
call fcn.00410560
push eax
push 0
lea ecx, [ebp - 0x1a4]
push ecx
lea ecx, [ebp - 0x15c]
call fcn.00409d60
mov dword [ebp - 0x23c], eax
mov edx, dword [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x15c]
call fcn.00410660
lea ecx, [ebp - 0x1a4]
call fcn.00409ec0
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.00410610
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.00410610
mov dword [ebp - 0x238], 1
movzx ecx, word [ebp - 0x288]
test ecx, ecx
jne 0x5c6fff
push 0x6540cc
lea ecx, [ebp - 0x144]
call fcn.00410610
jmp 0x5c705a
movzx edx, word [ebp - 0x288]
cmp edx, 9
jne 0x5c701d
push 0x6540d8
lea ecx, [ebp - 0x144]
call fcn.00410610
jmp 0x5c705a
movzx eax, word [ebp - 0x288]
cmp eax, 5
jne 0x5c703b
push str.ATSZIOAM.sys
lea ecx, [ebp - 0x144]
call fcn.00410610
jmp 0x5c705a
movzx ecx, word [ebp - 0x288]
push ecx
push str.error:_Unknown_Processor_Architecture:0x_x_n
call fcn.0040ff60
add esp, 8
mov dword [ebp - 0x238], 0
cmp dword [ebp - 0x238], 0
je 0x5c7237
lea edx, [ebp - 0x144]
push edx
push 0x654124
lea eax, [ebp - 0x174]
push eax
lea ecx, [ebp - 0x1d4]
push ecx
call fcn.005c6c20
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.005c6be0
mov dword [ebp - 0x248], eax
mov edx, dword [ebp - 0x248]
push edx
lea ecx, [ebp - 0x12c]
call fcn.00410660
lea ecx, [ebp - 0x1bc]
call fcn.00409ec0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1d4]
call fcn.00409ec0
lea ecx, [ebp - 0x12c]
call fcn.00409e20
push eax
call fcn.005c75a0
test eax, eax
je 0x5c70fb
jmp 0x5c7228
lea eax, [ebp - 0x144]
push eax
push 0x654128
lea ecx, [ebp - 0x18c]
push ecx
lea edx, [ebp - 0x204]
push edx
call fcn.005c6c20
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.005c6be0
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x254]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00410660
lea ecx, [ebp - 0x1ec]
call fcn.00409ec0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x204]
call fcn.00409ec0
lea ecx, [ebp - 0x12c]
call fcn.00409e20
push eax
call fcn.005c75a0
test eax, eax
je 0x5c718f
jmp 0x5c7228
lea ecx, [ebp - 0x144]
push ecx
push 0x65412c
lea edx, [ebp - 0x15c]
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.005c6c20
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.005c6be0
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x12c]
call fcn.00410660
lea ecx, [ebp - 0x21c]
call fcn.00409ec0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x234]
call fcn.00409ec0
lea ecx, [ebp - 0x12c]
call fcn.00409e20
push eax
call fcn.005c75a0
test eax, eax
je 0x5c7220
jmp 0x5c7228
xor edx, edx
jne 0x5c7067
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00410620
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x264], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x144]
call fcn.00409ec0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x12c]
call fcn.00409ec0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x15c]
call fcn.00409ec0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x174]
call fcn.00409ec0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18c]
call fcn.00409ec0
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.004797c8
mov esp, ebp
pop ebp
ret 4