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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016fbb8
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x101fd024]
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.10146e60
add esp, 0xc
lea ecx, [ebp - 0x18c]
call fcn.10003540
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x174]
call fcn.10003540
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x15c]
call fcn.10003540
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x12c]
call fcn.10003540
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x144]
call fcn.10003540
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.10003420
lea ecx, [ebp - 0x15c]
call fcn.10003120
push eax
push 0x10173db0
lea ecx, [ebp - 0x15c]
call fcn.1000d7a0
push eax
push 0
lea ecx, [ebp - 0x1a4]
push ecx
lea ecx, [ebp - 0x15c]
call fcn.10007dc0
mov dword [ebp - 0x23c], eax
mov edx, dword [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x15c]
call fcn.1000d9a0
lea ecx, [ebp - 0x1a4]
call fcn.10003490
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.10003420
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.10003420
mov dword [ebp - 0x238], 1
movzx ecx, word [ebp - 0x288]
test ecx, ecx
jne 0x1002110f
push 0x10173db4
lea ecx, [ebp - 0x144]
call fcn.10003420
jmp 0x1002116a
movzx edx, word [ebp - 0x288]
cmp edx, 9
jne 0x1002112d
push 0x10173dc0
lea ecx, [ebp - 0x144]
call fcn.10003420
jmp 0x1002116a
movzx eax, word [ebp - 0x288]
cmp eax, 5
jne 0x1002114b
push str.ATSZIOAM.sys
lea ecx, [ebp - 0x144]
call fcn.10003420
jmp 0x1002116a
movzx ecx, word [ebp - 0x288]
push ecx
push str.error:_Unknown_Processor_Architecture:0x_x_n
call fcn.100035a0
add esp, 8
mov dword [ebp - 0x238], 0
cmp dword [ebp - 0x238], 0
je 0x10021347
lea edx, [ebp - 0x144]
push edx
push 0x10173e0c
lea eax, [ebp - 0x174]
push eax
lea ecx, [ebp - 0x1d4]
push ecx
call fcn.10020d30
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.10020cf0
mov dword [ebp - 0x248], eax
mov edx, dword [ebp - 0x248]
push edx
lea ecx, [ebp - 0x12c]
call fcn.1000d9a0
lea ecx, [ebp - 0x1bc]
call fcn.10003490
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1d4]
call fcn.10003490
lea ecx, [ebp - 0x12c]
call fcn.10003110
push eax
call fcn.100216b0
test eax, eax
je 0x1002120b
jmp 0x10021338
lea eax, [ebp - 0x144]
push eax
push 0x10173e10
lea ecx, [ebp - 0x18c]
push ecx
lea edx, [ebp - 0x204]
push edx
call fcn.10020d30
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.10020cf0
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x254]
push eax
lea ecx, [ebp - 0x12c]
call fcn.1000d9a0
lea ecx, [ebp - 0x1ec]
call fcn.10003490
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x204]
call fcn.10003490
lea ecx, [ebp - 0x12c]
call fcn.10003110
push eax
call fcn.100216b0
test eax, eax
je 0x1002129f
jmp 0x10021338
lea ecx, [ebp - 0x144]
push ecx
push 0x10173e14
lea edx, [ebp - 0x15c]
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.10020d30
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.10020cf0
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x12c]
call fcn.1000d9a0
lea ecx, [ebp - 0x21c]
call fcn.10003490
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x234]
call fcn.10003490
lea ecx, [ebp - 0x12c]
call fcn.10003110
push eax
call fcn.100216b0
test eax, eax
je 0x10021330
jmp 0x10021338
xor edx, edx
jne 0x10021177
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000d970
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x264], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x144]
call fcn.10003490
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x12c]
call fcn.10003490
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x15c]
call fcn.10003490
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x174]
call fcn.10003490
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18c]
call fcn.10003490
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.10021a20
mov esp, ebp
pop ebp
ret 4