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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov dword [ebp - 0x84], ecx
mov byte [ebp - 0x4d], 0x30
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x68], eax
mov ecx, 0xe31
mov word [ebp - 0x70], cx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x4e], 0x5e
mov edx, 0x743
mov word [ebp - 0x60], dx
lea eax, [ebp - 0x4d]
mov dword [ebp - 0x74], eax
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x1c], ecx
movzx edx, word [ebp - 0x70]
cmp edx, 0x8ac
jge 0x401bc4
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx]
call fcn.00401b30
mov eax, dword [ebp - 0x74]
movzx ecx, byte [eax]
sub ecx, 9
mov byte [ebp - 0x4d], cl
movzx edx, word [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ecx
movzx edx, word [ebp - 0x70]
push edx
movzx eax, byte [ebp - 0x4d]
push eax
call fcn.00401ea0
add esp, 0x10
mov ecx, dword [ebp - 0x74]
mov dl, byte [ecx]
mov byte [ebp - 0x88], dl
cmp byte [ebp - 0x88], 0x30
je 0x401bda
jmp 0x401c01
mov dword [ebp - 0x28], 0x33e6
mov ax, word [ebp - 0x60]
mov word [ebp - 0x64], ax
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dl, byte [ebp - 0x4e]
mov byte [ebp - 0xd], dl
lea eax, [ebp - 0x70]
mov dword [ebp - 0x24], eax
jmp 0x401c42
cmp dword [ebp - 0x28], 0xc4f1
jb 0x401c34
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx]
shl edx, 1
mov word [ebp - 0x70], dx
mov eax, dword [ebp - 0x74]
movzx ecx, byte [eax]
sar ecx, 1
mov byte [ebp - 0x4d], cl
lea edx, [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x7c]
push eax
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
mov dword [ebp - 0x54], eax
jmp 0x401c42
mov ecx, dword [ebp - 0x68]
xor ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0x1c]
mov dword [edx], ecx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x80], eax
mov cl, byte [ebp - 0xd]
mov byte [ebp - 0x59], cl
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x24]
movzx eax, word [edx]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0xa94
je 0x401e5d
cmp dword [ebp - 0x8c], 0xe31
je 0x401c89
jmp 0x401e85
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
movzx edx, word [ebp - 0x70]
imul edx, edx, 0x9ac
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax]
cmp edx, ecx
jg 0x401cb4
mov edx, dword [ebp - 0x74]
movzx eax, byte [edx]
shl eax, 4
mov byte [ebp - 0x4d], al
jmp 0x401dbe
movsx ecx, word [ebp - 0x64]
and ecx, 0x46e
movsx edx, word [ebp - 0x60]
cmp ecx, edx
jge 0x401dbe
mov eax, dword [ebp - 0x24]
mov cx, word [eax]
mov word [ebp - 8], cx
movsx edx, byte [ebp - 0xd]
movsx eax, byte [ebp - 0x4e]
imul edx, eax
movsx ecx, byte [ebp - 0x59]
cmp edx, ecx
jle 0x401cfe
lea edx, [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x20], ecx
jmp 0x401d6f
movsx edx, word [ebp - 0x64]
and edx, 0x6a2
movsx eax, word [ebp - 0x60]
cmp edx, eax
jle 0x401d6f
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
sub edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
mov dword [eax], edx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x84], ecx
movzx edx, word [ebp - 8]
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax]
add edx, ecx
mov word [ebp - 0x70], dx
movzx edx, word [ebp - 0x70]
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax]
imul edx, ecx
movzx eax, word [ebp - 8]
cmp edx, eax
je 0x401d64
movzx ecx, byte [ebp - 0xd]
push ecx
movzx edx, byte [ebp - 0x4e]
push edx
movzx eax, byte [ebp - 0x59]
push eax
call fcn.00401840
add esp, 0xc
jmp 0x401d6f
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov dword [ebp - 0x84], edx
lea eax, [ebp - 0x4d]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x1c]
mov dword [eax], edx
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx]
push edx
mov eax, dword [ebp - 0xc]
push eax
movzx ecx, word [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x74]
movzx eax, byte [edx]
push eax
call fcn.00401ea0
add esp, 0x10
movzx ecx, word [ebp - 0x70]
sub ecx, 0x501
mov edx, dword [ebp - 0x24]
mov word [edx], cx
mov eax, dword [ebp - 0x74]
movzx ecx, byte [eax]
add ecx, 0x73
mov byte [ebp - 0x4d], cl
mov edx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x6c]
mov dword [ebp - 0x80], edx
movsx eax, byte [ebp - 0x4e]
movsx ecx, byte [ebp - 0xd]
add eax, ecx
movsx edx, byte [ebp - 0x59]
cmp eax, edx
jl 0x401e2b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call fcn.00401b30
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x24]
movzx edx, word [eax]
movzx ecx, word [ebp - 0x70]
sar edx, cl
mov eax, dword [ebp - 0x24]
mov word [eax], dx
movsx ecx, byte [ebp - 0x59]
movsx edx, byte [ebp - 0xd]
xor ecx, edx
mov byte [ebp - 0x4e], cl
jmp 0x401e5b
movzx eax, word [ebp - 0x70]
or eax, 0xaff
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx]
cmp eax, edx
jl 0x401e5b
movzx eax, word [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x74]
movzx edx, byte [ecx]
push edx
movzx eax, word [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.004024e0
add esp, 0x10
jmp 0x401e85
mov edx, dword [ebp - 0x24]
movzx eax, word [edx]
or eax, 0x632
mov word [ebp - 0x70], ax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
add edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x1c]
mov dword [eax], edx
mov ecx, dword [ebp - 0x6c]
sub ecx, dword [ebp - 0x80]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x84], edx
mov eax, 0x6e
mov esp, ebp
pop ebp
ret