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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec849
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x52c0cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
push str.GetNativeSystemInfo
push str.kernel32
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40dbb5
lea ecx, [ebp - 0x2fc]
push ecx
call eax
jmp 0x40dbc2
lea eax, [ebp - 0x2fc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x2fc]
cmp ax, 9
je 0x40dc14
cmp ax, 6
je 0x40dc14
cmp dword [0x5329e8], 8
mov eax, 0x5329d4
cmovae eax, dword [0x5329d4]
add esi, 0x258
cmp dword [esi + 0x14], 8
jb 0x40dbf8
mov ecx, dword [esi]
jmp 0x40dbfa
mov ecx, esi
push eax
push ecx
lea eax, [ebp - 0x314]
push 0x513764
push eax
call fcn.0041fd50
add esp, 0x10
mov edi, eax
jmp 0x40dc51
cmp dword [0x5329e8], 8
mov eax, 0x5329d4
cmovae eax, dword [0x5329d4]
add esi, 0x258
cmp dword [esi + 0x14], 8
jb 0x40dc37
mov ecx, dword [esi]
jmp 0x40dc39
mov ecx, esi
push eax
push ecx
lea eax, [ebp - 0x314]
push 0x513764
push eax
call fcn.0041fd50
add esp, 0x10
mov edi, eax
lea eax, [ebp - 0x248]
cmp eax, edi
je 0x40dc9e
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x40dc79
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00407100
xor eax, eax
mov dword [ebp - 0x234], 7
push edi
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov word [ebp - 0x248], ax
call fcn.00410d90
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x300]
cmp eax, 8
jb 0x40dcc0
inc eax
lea ecx, [ebp - 0x314]
push eax
push dword [ebp - 0x314]
call fcn.00407100
lea ecx, [ebp - 0x314]
call fcn.0041bab0
mov byte [ebp - 4], 3
mov ecx, 0x532a34
cmp dword [0x532a48], 8
cmovae ecx, dword [0x532a34]
cmp dword [eax + 0x14], 8
jb 0x40dcea
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x2d8]
push str._s_s_
push eax
call fcn.0041fd50
add esp, 0x10
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x300]
cmp eax, 8
jb 0x40dd22
inc eax
lea ecx, [ebp - 0x314]
push eax
push dword [ebp - 0x314]
call fcn.00407100
xor eax, eax
mov dword [ebp - 0x300], 7
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x304], 0
mov word [ebp - 0x314], ax
call fcn.0041b850
mov byte [ebp - 4], 6
mov edi, 0x532a64
cmp dword [0x532a78], 8
mov ecx, edi
cmovae ecx, dword [0x532a64]
cmp dword [eax + 0x14], 8
jb 0x40dd6b
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x2c0]
push 0x513808
push eax
call fcn.0041fd50
add esp, 0x10
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x40dda3
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00407100
xor eax, eax
mov dword [ebp - 0x21c], 7
lea ecx, [ebp - 0x314]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.0041bab0
mov byte [ebp - 4], 9
mov ecx, 0x532a7c
cmp dword [0x532a90], 8
cmovae ecx, dword [0x532a7c]
cmp dword [eax + 0x14], 8
jb 0x40ddea
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x2a8]
push 0x513808
push eax
call fcn.0041fd50
add esp, 0x10
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x300]
cmp eax, 8
jb 0x40de22
inc eax
lea ecx, [ebp - 0x314]
push eax
push dword [ebp - 0x314]
call fcn.00407100
xor eax, eax
mov dword [ebp - 0x300], 7
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x304], 0
mov word [ebp - 0x314], ax
call fcn.0041bab0
mov byte [ebp - 4], 0xc
mov ecx, 0x53295c
cmp dword [0x532970], 8
cmovae ecx, dword [0x53295c]
cmp dword [eax + 0x14], 8
jb 0x40de69
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x290]
push 0x513808
push eax
call fcn.0041fd50
add esp, 0x10
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x40dea1
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00407100
xor eax, eax
mov dword [ebp - 0x21c], 7
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
jb 0x40dec6
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x278]
push 0x513814
push eax
call fcn.0041fd50
add esp, 0xc
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x2d8]
cmp dword [ebp - 0x2c4], 8
cmovae eax, dword [ebp - 0x2d8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0
push 0x19
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x260]
push 0x513830
push eax
call fcn.0041fd50
add esp, 0xc
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
cmovae eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp eax, 0x10
jne 0x40e032
cmp dword [0x532a78], 8
lea eax, [ebp - 0x260]
cmovae edi, dword [0x532a64]
cmp dword [ebp - 0x24c], 8
push edi
cmovae eax, dword [ebp - 0x260]
push eax
lea eax, [ebp - 0x230]
push 0x513764
push eax
call fcn.0041fd50
add esp, 0x10
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x314]
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.00406be0
sub esp, 0x18
mov byte [ebp - 4], 0x12
mov ecx, esp
mov dword [ebp - 0x318], esp
push 0x510374
call fcn.00406be0
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
push 0x510374
call fcn.00406be0
push ecx
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x314]
push eax
call fcn.0040f400
mov eax, dword [ebp - 0x300]
cmp eax, 8
jb 0x40e010
inc eax
lea ecx, [ebp - 0x314]
push eax
push dword [ebp - 0x314]
call fcn.00407100
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x40e032
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00407100
cmp dword [ebp - 0x2ac], 8
lea edx, [ebp - 0x2c0]
mov dword [ebp - 0x300], 7
cmovae edx, dword [ebp - 0x2c0]
xor eax, eax
mov dword [ebp - 0x304], 0
mov word [ebp - 0x314], ax
cmp word [edx], ax
jne 0x40e06c
xor ecx, ecx
jmp 0x40e080
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e071
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x314]
call fcn.00406d70
mov byte [ebp - 4], 0x14
lea edx, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
mov dword [ebp - 0x21c], 7
cmovae edx, dword [ebp - 0x248]
xor eax, eax
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [edx], ax
jne 0x40e0cb
xor ecx, ecx
jmp 0x40e0df
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e0d0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.00406d70
sub esp, 0x18
mov byte [ebp - 4], 0x15
mov ecx, esp
mov dword [ebp - 0x31c], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x40e121
mov eax, dword [ecx]
jmp 0x40e123
mov eax, ecx
xor edx, edx
push edx
push 0x510374
mov word [eax], dx
call fcn.00406d70
sub esp, 0x18
mov byte [ebp - 4], 0x16
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x40e162
mov eax, dword [ecx]
jmp 0x40e164
mov eax, ecx
xor edx, edx
push edx
push 0x510374
mov word [eax], dx
call fcn.00406d70
push ecx
lea eax, [ebp - 0x314]
mov byte [ebp - 4], 0x15
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0040f400
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x40e1aa
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00407100
xor eax, eax
mov byte [ebp - 4], 0x10
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x300]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
cmp eax, 8
jb 0x40e1e9
inc eax
lea ecx, [ebp - 0x314]
push eax
push dword [ebp - 0x314]
call fcn.00407100
cmp dword [ebp - 0x294], 8
lea edx, [ebp - 0x2a8]
mov dword [ebp - 0x300], 7
cmovae edx, dword [ebp - 0x2a8]
xor eax, eax
mov dword [ebp - 0x304], 0
mov word [ebp - 0x314], ax
cmp word [edx], ax
jne 0x40e223
xor ecx, ecx
jmp 0x40e23f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e230
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x314]
call fcn.00406d70
mov byte [ebp - 4], 0x17
lea edx, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
mov dword [ebp - 0x21c], 7
cmovae edx, dword [ebp - 0x248]
xor eax, eax
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [edx], ax
jne 0x40e28a
xor ecx, ecx
jmp 0x40e29f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e290
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.00406d70
sub esp, 0x18
mov byte [ebp - 4], 0x18
mov ecx, esp
mov dword [ebp - 0x31c], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x40e2e1
mov eax, dword [ecx]
jmp 0x40e2e3
mov eax, ecx
xor edx, edx
push edx
push 0x510374
mov word [eax], dx
call fcn.00406d70
sub esp, 0x18
mov byte [ebp - 4], 0x19
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x40e322
mov eax, dword [ecx]
jmp 0x40e324
mov eax, ecx
xor edx, edx
push edx
push 0x510374
mov word [eax], dx
call fcn.00406d70
push ecx
lea eax, [ebp - 0x314]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0040f400
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x40e36a
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00407100
xor eax, eax
mov byte [ebp - 4], 0x10
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x300]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
cmp eax, 8
jb 0x40e3a9
inc eax
lea ecx, [ebp - 0x314]
push eax
push dword [ebp - 0x314]
call fcn.00407100
cmp dword [ebp - 0x27c], 8
lea edx, [ebp - 0x290]
mov dword [ebp - 0x300], 7
cmovae edx, dword [ebp - 0x290]
xor eax, eax
mov dword [ebp - 0x304], 0
mov word [ebp - 0x314], ax
cmp word [edx], ax
jne 0x40e3e3
xor ecx, ecx
jmp 0x40e3ff
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e3f0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x314]
call fcn.00406d70
mov byte [ebp - 4], 0x1a
lea edx, [ebp - 0x278]
cmp dword [ebp - 0x264], 8
mov dword [ebp - 0x21c], 7
cmovae edx, dword [ebp - 0x278]
xor eax, eax
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [edx], ax
jne 0x40e44a
xor ecx, ecx
jmp 0x40e45f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e450
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.00406d70
sub esp, 0x18
mov byte [ebp - 4], 0x1b
mov ecx, esp
mov dword [ebp - 0x31c], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x40e4a1
mov eax, dword [ecx]
jmp 0x40e4a3
mov eax, ecx
xor edx, edx
push edx
push 0x510374
mov word [eax], dx
call fcn.00406d70
sub esp, 0x18
mov byte [ebp - 4], 0x1c
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x40e4e2
mov eax, dword [ecx]
jmp 0x40e4e4
mov eax, ecx
xor edx, edx
push edx
push 0x510374
mov word [eax], dx
call fcn.00406d70
push ecx
lea eax, [ebp - 0x314]
mov byte [ebp - 4], 0x1b
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0040f400
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x40e52a
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00407100
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x300]
mov dword [ebp - 0x220], 0
cmp eax, 8
jb 0x40e565
inc eax
lea ecx, [ebp - 0x314]
push eax
push dword [ebp - 0x314]
call fcn.00407100
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x40e583
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00407100
xor eax, eax
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x250], 0
cmp eax, 8
jb 0x40e5be
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.00407100
xor eax, eax
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x268], 0
cmp eax, 8
jb 0x40e5f9
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.00407100
xor eax, eax
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x280], 0
cmp eax, 8
jb 0x40e634
inc eax
lea ecx, [ebp - 0x2a8]
push eax
push dword [ebp - 0x2a8]
call fcn.00407100
xor eax, eax
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
mov eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x298], 0
cmp eax, 8
jb 0x40e66f
inc eax
lea ecx, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2c0]
call fcn.00407100
xor eax, eax
mov dword [ebp - 0x2ac], 7
mov word [ebp - 0x2c0], ax
mov eax, dword [ebp - 0x2c4]
mov dword [ebp - 0x2b0], 0
cmp eax, 8
jb 0x40e6aa
inc eax
lea ecx, [ebp - 0x2d8]
push eax
push dword [ebp - 0x2d8]
call fcn.00407100
xor eax, eax
mov dword [ebp - 0x2c4], 7
mov word [ebp - 0x2d8], ax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x2c8], 0
cmp eax, 8
jb 0x40e6e5
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00407100
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004abe1b
mov esp, ebp
pop ebp
ret