Function at 0x10001000
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get session user name
Link many functions at runtime
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x384
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x380], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
push str.kernel32.dll
mov dword [esp + 0x24], esi
call esi
push str.user32.dll
mov ebx, eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x10018cd4
push ebx
call edi
push str.VirtualAlloc
push ebx
mov dword [esp + 0x2c], eax
call edi
push str.VirtualFree
push ebx
mov dword [esp + 0x18], eax
call edi
push str.MessageBoxA
push esi
mov dword [esp + 0x1c], eax
call edi
push str.CreateFileA
push ebx
call edi
push str.ReadFile
push ebx
mov dword [esp + 0x20], eax
call edi
push 0x10018d24
push ebx
mov dword [esp + 0x24], eax
call edi
push str.GetFileSize
push ebx
mov dword [esp + 0x14], eax
call edi
push 0x104
mov ebx, eax
lea eax, [esp + 0x74]
push 0
push eax
call fcn.10007f80
add esp, 0xc
push str.LOCALAPPDATA
call fcn.1000a403
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 4
test eax, eax
je 0x100010d8
push str.LOCALAPPDATA
call fcn.1000a403
add esp, 4
mov ecx, eax
jmp 0x1000118f
lea eax, [esp + 0x64]
mov dword [esp + 0x64], 0x104
push eax
lea eax, [esp + 0x17c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x10001124
lea eax, [esp + 0x178]
push eax
lea eax, [esp + 0x74]
push str.C:Users_sAppDataLocal
push eax
call esi
add esp, 0xc
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10001124
lea ecx, [esp + 0x70]
jmp 0x1000118f
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push 0
push 0x8000
push 0x10014190
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
lea eax, [esp + 0x70]
jne 0x10001174
push 0x104
push dword [esp + 0x2c]
push 0x104
push eax
push 0
call fcn.1000a2f7
add esp, 0x14
push dword [esp + 0x28]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [esp + 0x70]
jmp 0x1000118f
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
lea ecx, [esp + 0x70]
mov edx, 0x10018cb6
cmove ecx, edx
push ecx
lea eax, [esp + 0x284]
push str._sSteamlocalData.vdf
push eax
call esi
add esp, 0xc
lea eax, [esp + 0x280]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [esp + 0x34]
mov edi, eax
cmp edi, 0xffffffff
je 0x10001777
push 0
push edi
call ebx
push 4
push 0x3000
mov esi, eax
push esi
push 0
call dword [esp + 0x20]
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x10001206
push edi
call dword [esp + 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x380]
xor ecx, esp
call fcn.10006e30
mov esp, ebp
pop ebp
ret
push 0
lea eax, [esp + 0x70]
push eax
push esi
push ebx
push edi
call dword [esp + 0x30]
test eax, eax
je 0x10001766
cmp dword [esp + 0x6c], esi
jne 0x10001766
push edi
call dword [esp + 0x10]
push 4
lea eax, [esi + esi*4]
push 0x3000
push eax
push 0
mov dword [esp + 0x38], eax
call dword [esp + 0x20]
mov ecx, eax
mov dword [esp + 0x64], ecx
test ecx, ecx
je 0x1000176b
xor ecx, ecx
test esi, esi
je 0x100012e0
cmp esi, 8
jb 0x100012d8
movups xmm1, xmmword [0x1001d520]
cmp esi, 0x40
jb 0x100012b0
mov edi, esi
lea eax, [ebx + 0x20]
and edi, 0x3f
mov edx, esi
sub edx, edi
movups xmm0, xmmword [eax - 0x20]
add ecx, 0x40
lea eax, [eax + 0x40]
andnps xmm0, xmm1
movups xmmword [eax - 0x60], xmm0
movups xmm0, xmmword [eax - 0x50]
andnps xmm0, xmm1
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [eax - 0x40]
andnps xmm0, xmm1
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [eax - 0x30]
andnps xmm0, xmm1
movups xmmword [eax - 0x30], xmm0
cmp ecx, edx
jb 0x10001275
cmp edi, 8
jb 0x100012d4
mov eax, esi
and eax, 0xfffffff8
nop word [eax + eax]
movq xmm0, qword [ecx + ebx]
andnps xmm0, xmm1
movq qword [ecx + ebx], xmm0
add ecx, 8
cmp ecx, eax
jb 0x100012c0
cmp ecx, esi
jae 0x100012e0
not byte [ecx + ebx]
inc ecx
cmp ecx, esi
jb 0x100012d8
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x100012fc
mov edi, eax
mov dword [esp + 0x28], 0
jmp 0x10001309
lea eax, [esp + 0x6b]
mov edi, 1
mov dword [esp + 0xc], eax
sub esp, 8
mov dword [esp + 0x34], ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
call fcn.10003740
test eax, eax
jne 0x1000174d
mov eax, dword [esp + 0xc]
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x3c], eax
or ebx, 0xffffffff
test eax, eax
jne 0x10001364
cmp edi, 0xffffffff
mov eax, edi
cmova eax, ebx
mov dword [esp + 0x3c], eax
sub edi, eax
cmp dword [esp + 0x30], 0
jne 0x10001379
cmp esi, 0xffffffff
mov eax, esi
cmova eax, ebx
mov dword [esp + 0x30], eax
sub esi, eax
xor edx, edx
lea ecx, [esp + 0x2c]
call fcn.10003980
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x10001394
mov eax, dword [esp + 0x3c]
jmp 0x10001352
lea eax, [esp + 0x6b]
mov edx, 1
cmp dword [esp + 0xc], eax
je 0x100013ad
mov eax, dword [esp + 0x40]
mov dword [esp + 0x28], eax
jmp 0x100013ba
cmp dword [esp + 0x40], 0
je 0x100013ba
cmp ecx, 0xfffffffb
cmove edi, edx
cmp dword [esp + 0x4c], 0
mov ebx, dword [esp + 0x18]
je 0x10001411
mov esi, dword [esp + 0x50]
test esi, esi
je 0x10001411
mov edx, dword [esp + 0x48]
test edx, edx
je 0x10001411
lea eax, [esp + 0x2c]
cmp dword [edx], eax
jne 0x10001411
mov eax, dword [edx + 4]
sub eax, 0x3f34
cmp eax, 0x1f
ja 0x10001411
mov eax, dword [edx + 0x38]
test eax, eax
je 0x10001403
push eax
push dword [esp + 0x58]
call esi
mov esi, dword [esp + 0x58]
add esp, 8
mov edx, dword [esp + 0x48]
push edx
push dword [esp + 0x58]
call esi
mov ecx, dword [esp + 0x24]
add esp, 8
cmp ecx, 1
jne 0x1000173d
push 0x8000
push 0
push ebx
call dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x64]
cmp edx, 0x40
jb 0x10001717
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x10001717
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 0x1c], ecx
lea eax, [ecx + 0xf8]
cmp edx, eax
jb 0x10001717
cmp dword [ecx + ebx], 0x4550
lea esi, [ecx + ebx]
mov dword [esp + 0x28], esi
jne 0x10001717
push 0x40
push 0x3000
push dword [esi + 0x50]
push 0
call dword [esp + 0x20]
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x10001717
mov edx, dword [esi + 0x54]
test edx, edx
je 0x100014a5
mov ecx, edi
sub ebx, edi
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x10001497
movzx ecx, word [esi + 0x14]
xor eax, eax
add ecx, esi
xor ebx, ebx
mov dword [esp + 0x10], ecx
cmp ax, word [esi + 6]
jae 0x100014ff
nop dword [eax]
mov esi, dword [esp + 0x10]
movzx eax, bx
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*8 + 0x28]
mov ecx, dword [ecx + eax*8 + 0x24]
mov esi, dword [esi + eax*8 + 0x2c]
add ecx, edi
add esi, dword [esp + 0x64]
test edx, edx
je 0x100014f0
sub esi, ecx
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x100014e2
mov esi, dword [esp + 0x28]
inc ebx
mov ecx, dword [esp + 0x10]
cmp bx, word [esi + 6]
jb 0x100014c0
cmp dword [esi + 0xa4], 0
je 0x1000157a
mov esi, dword [esi + 0xa0]
add esi, edi
cmp dword [esi], 0
je 0x10001576
mov ebx, dword [esi + 4]
lea eax, [esi + 4]
sub ebx, 8
mov dword [esp + 0xc], eax
shr ebx, 1
mov edx, 0
mov dword [esp + 0x10], ebx
je 0x1000156f
nop
movzx eax, word [esi + edx*2 + 8]
mov ecx, eax
and ecx, 0xf000
cmp ecx, 0x3000
jne 0x10001566
mov ebx, dword [esp + 0x64]
and eax, 0xfff
add eax, dword [esi]
mov ecx, edi
add eax, edi
mov edi, dword [esp + 0x1c]
sub ecx, dword [edi + ebx + 0x34]
add dword [eax], ecx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
inc edx
cmp edx, ebx
jb 0x10001530
mov eax, dword [esp + 0xc]
add esi, dword [eax]
cmp dword [esi], 0
jne 0x10001515
mov esi, dword [esp + 0x28]
cmp dword [esi + 0x84], 0
je 0x1000160b
mov ebx, dword [esi + 0x80]
add ebx, edi
mov dword [esp + 0xc], ebx
cmp dword [ebx + 0xc], 0
je 0x1000160b
nop dword [eax]
mov eax, dword [ebx + 0xc]
add eax, edi
push eax
call dword [esp + 0x24]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1000161f
mov edx, dword [ebx]
mov esi, dword [ebx + 0x10]
lea ecx, [edi + edx]
test ecx, ecx
lea ebx, [edi + esi]
cmovne esi, edx
add esi, edi
mov eax, dword [esi]
test eax, eax
je 0x100015f6
mov ecx, eax
jns 0x100015d3
movzx eax, cx
jmp 0x100015d8
lea eax, [ecx + 2]
add eax, edi
push eax
push dword [esp + 0x14]
call dword [esp + 0x2c]
mov dword [ebx], eax
test eax, eax
je 0x1000161f
mov eax, dword [esi + 4]
add esi, 4
add ebx, 4
mov ecx, eax
test eax, eax
jne 0x100015cc
mov ebx, dword [esp + 0xc]
add ebx, 0x14
mov dword [esp + 0xc], ebx
cmp dword [ebx + 0xc], 0
jne 0x100015a0
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x28]
test eax, eax
je 0x10001654
push 0
push 1
push edi
add eax, edi
call eax
test eax, eax
jne 0x10001654
mov ebx, dword [esp + 0x14]
push 0x8000
push 0
push edi
call ebx
push 0x8000
push 0
push dword [esp + 0x6c]
call ebx
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x380]
xor ecx, esp
call fcn.10006e30
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push dword [esp + 0x6c]
call dword [esp + 0x20]
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x10001723
mov eax, dword [eax + edi + 0x78]
xor esi, esi
add eax, edi
mov ecx, dword [eax + 0x24]
mov ebx, dword [eax + 0x20]
add ecx, edi
mov dword [esp + 0x1c], ecx
add ebx, edi
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
add ecx, edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
test eax, eax
je 0x10001723
nop
mov eax, dword [ebx + esi*4]
mov ecx, str.loadLib
add eax, edi
mov dl, 0x6c
nop dword [eax]
cmp dl, byte [eax]
jne 0x100016bd
mov dl, byte [ecx + 1]
inc ecx
inc eax
test dl, dl
jne 0x100016b0
movzx ecx, byte [ecx]
movzx eax, byte [eax]
sub ecx, eax
je 0x100016e8
inc esi
cmp esi, dword [esp + 0x20]
jb 0x100016a0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x380]
xor ecx, esp
call fcn.10006e30
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
add eax, edi
je 0x10001723
call eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x380]
xor ecx, esp
call fcn.10006e30
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push ebx
call dword [esp + 0x20]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x380]
xor ecx, esp
call fcn.10006e30
mov esp, ebp
pop ebp
ret
cmp ecx, 2
je 0x1000174d
cmp ecx, 0xfffffffb
jne 0x1000174d
mov eax, dword [esp + 0x3c]
add eax, edi
push 0x8000
push 0
push ebx
call dword [esp + 0x20]
push 0x8000
push 0
push dword [esp + 0x6c]
jmp 0x10001773
push edi
call dword [esp + 0x10]
push 0x8000
push 0
push ebx
call dword [esp + 0x20]
mov ecx, dword [esp + 0x38c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10006e30
mov esp, ebp
pop ebp
ret