Function at 0x4747d0
Capabilities:
Get file size
Query or enumerate registry value
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c58e2
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x67c3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004782b0
cmp byte [eax + 0x1eb], 0
je 0x475229
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x250], 0
push 0x5d5a64
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x24c], 0
movups xmmword [ebp - 0x260], xmm0
call fcn.00442860
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [ebp - 0x288]
push eax
push str.SOFTWAREValveSteam
push 0x80000002
mov dword [ebp - 4], 0
mov dword [ebp - 0x268], 1
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x264], 0x208
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4748ea
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x268]
push eax
push 0
push str.InstallPath
push dword [ebp - 0x288]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4748e2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4748c0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.00469260
push dword [ebp - 0x288]
call esi
cmp dword [ebp - 0x250], 0
jne 0x47497a
lea eax, [ebp - 0x288]
push eax
push str.SOFTWAREWow6432NodeValveSteam
push 0x80000002
call edi
test eax, eax
jne 0x47496d
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x268]
push eax
push 0
push str.InstallPath
push dword [ebp - 0x288]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x474965
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474943
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.00469260
push dword [ebp - 0x288]
call esi
cmp dword [ebp - 0x250], 0
je 0x4751ed
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x2ac]
push eax
call fcn.005435e0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x260]
cmp eax, esi
je 0x4749cd
mov ecx, eax
call fcn.004443f0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x260], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x250], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x2ac]
call fcn.004443f0
push 0x5d668c
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x2ac]
push eax
call fcn.0045dab0
add esp, 0xc
push eax
mov byte [ebp - 4], 1
call fcn.00475260
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 0
call fcn.004443f0
push str._steamappslibraryfolders.vdf
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.0045dab0
add esp, 0xc
cmp dword [ebp - 0x26c], 7
lea eax, [ebp - 0x280]
push 0
cmova eax, dword [ebp - 0x280]
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2b0], eax
cmp eax, 0xffffffff
je 0x475190
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.005aaec4
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x2b4], edi
call fcn.0059c4a0
add esp, 0x10
lea eax, [ebp - 0x284]
push 0
push eax
push esi
push edi
push dword [ebp - 0x2b0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, edi
mov dword [ebp - 0x238], 0
xorps xmm0, xmm0
mov dword [ebp - 0x234], 0
movups xmmword [ebp - 0x248], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x474ac6
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x248]
call fcn.004427c0
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
movups xmmword [ebp - 0x230], xmm0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x290], 0x20f
push eax
call fcn.00442700
mov ecx, dword [ebp - 0x290]
add esp, 8
mov dword [ebp - 0x21c], ecx
mov cl, byte [ebp - 0x230]
mov byte [eax], cl
lea ecx, [ebp - 0x248]
mov edi, dword [ebp - 0x234]
cmp edi, 0xf
mov dword [ebp - 0x230], eax
cmova ecx, dword [ebp - 0x248]
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x290], ecx
cmp eax, 3
jb 0x474bde
add eax, 0xfffffffe
add eax, ecx
sub eax, ecx
push eax
push 0x3a
push ecx
call fcn.0059cde0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x474bde
nop dword [eax]
movzx eax, byte [esi]
cmp al, 0x3a
jne 0x474bab
movzx eax, byte [esi + 1]
cmp al, 0x5c
jne 0x474bab
movzx eax, byte [esi + 2]
cmp al, 0x5c
jne 0x474bab
xor eax, eax
jmp 0x474bb0
sbb eax, eax
or eax, 1
test eax, eax
je 0x474c8a
mov ecx, dword [ebp - 0x290]
inc esi
mov eax, dword [ebp - 0x238]
add ecx, 0xfffffffe
add eax, ecx
sub eax, esi
push eax
push 0x3a
push esi
call fcn.0059cde0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x474b90
push dword [ebp - 0x2b4]
call fcn.005aaea9
add esp, 4
push dword [ebp - 0x2b0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x21c]
cmp ecx, 0xf
jbe 0x474c32
mov edx, dword [ebp - 0x230]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x474c28
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475246
push ecx
push edx
call fcn.0059a744
add esp, 8
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
cmp ecx, 0xf
jbe 0x475190
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x475186
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475246
jmp 0x475186
sub esi, dword [ebp - 0x290]
cmp esi, 0xffffffff
je 0x474bde
nop dword [eax]
cmp edi, 0xf
lea eax, [ebp - 0x248]
cmova eax, dword [ebp - 0x248]
movsx eax, byte [eax + esi - 1]
push eax
call fcn.005adf00
add esp, 4
test eax, eax
je 0x475146
mov edi, dword [ebp - 0x234]
lea eax, [ebp - 0x248]
mov ecx, dword [ebp - 0x248]
cmp edi, 0xf
cmova eax, ecx
cmp byte [eax + esi - 2], 0x22
jne 0x47514c
cmp edi, 0xf
lea eax, [ebp - 0x248]
cmova eax, ecx
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x290], eax
cmp ecx, 1
jb 0x47514c
dec ecx
cmp esi, ecx
ja 0x47514c
lea edx, [ecx + 1]
add edx, eax
lea ecx, [eax + esi]
mov dword [ebp - 0x294], edx
sub edx, ecx
push edx
push 0x22
push ecx
call fcn.0059cde0
add esp, 0xc
test eax, eax
je 0x47514c
movzx ecx, byte [eax]
cmp cl, 0x22
jne 0x474d43
xor ecx, ecx
jmp 0x474d48
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x474d6a
mov ecx, dword [ebp - 0x294]
inc eax
sub ecx, eax
push ecx
push 0x22
push eax
call fcn.0059cde0
add esp, 0xc
test eax, eax
jne 0x474d37
jmp 0x47514c
sub eax, dword [ebp - 0x290]
cmp eax, 0xffffffff
je 0x47514c
cmp dword [ebp - 0x21c], 0xf
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
lea edi, [esi - 1]
cmova ecx, dword [ebp - 0x230]
xorps xmm0, xmm0
movups xmmword [ebp - 0x2ac], xmm0
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 0
mov byte [ecx], 0
mov edx, dword [ebp - 0x238]
cmp edx, edi
jb 0x475250
sub eax, esi
sub edx, edi
lea ecx, [eax + 1]
cmp edx, ecx
lea eax, [ebp - 0x248]
cmovb ecx, edx
cmp dword [ebp - 0x234], 0xf
push ecx
cmova eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x2ac]
add eax, edi
push eax
call fcn.004427c0
lea ecx, [ebp - 0x230]
call fcn.004443a0
movups xmm0, xmmword [ebp - 0x2ac]
lea eax, [ebp - 0x230]
push eax
movups xmmword [ebp - 0x230], xmm0
lea eax, [ebp - 0x2ac]
movq xmm0, qword [ebp - 0x29c]
push eax
movq qword [ebp - 0x220], xmm0
call fcn.005432d0
mov edi, eax
add esp, 8
lea eax, [ebp - 0x230]
cmp eax, edi
je 0x474e72
mov ecx, eax
call fcn.004443a0
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x220], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov ecx, dword [ebp - 0x298]
cmp ecx, 0xf
jbe 0x474eac
mov edx, dword [ebp - 0x2ac]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x474ea2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475246
push ecx
push edx
call fcn.0059a744
add esp, 8
cmp dword [ebp - 0x21c], 0xf
lea eax, [ebp - 0x230]
push 0xfde9
cmova eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x2ac]
push eax
call fcn.00544480
mov edi, dword [ebp - 0x2ac]
lea eax, [ebp - 0x260]
mov edx, dword [ebp - 0x29c]
lea ecx, [ebp - 0x2ac]
add esp, 0xc
cmp dword [ebp - 0x24c], 7
cmova eax, dword [ebp - 0x260]
cmp dword [ebp - 0x298], 7
cmova ecx, edi
cmp edx, dword [ebp - 0x250]
jne 0x474f23
push edx
push eax
push ecx
call fcn.00469370
add esp, 0xc
mov byte [ebp - 0x289], 0
test eax, eax
je 0x474f2a
mov byte [ebp - 0x289], 1
mov eax, dword [ebp - 0x298]
cmp eax, 7
jbe 0x474f64
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x474f5a
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475246
push ecx
push edi
call fcn.0059a744
add esp, 8
cmp byte [ebp - 0x289], 0
je 0x475146
mov ecx, dword [ebp - 0x220]
mov eax, 0x7fffffff
sub eax, ecx
mov dword [ebp - 0x294], ecx
cmp eax, 0xa
jb 0x47524b
cmp dword [ebp - 0x21c], 0xf
lea eax, [ebp - 0x230]
mov edx, 0xf
mov dword [ebp - 0x2bc], 0
cmova eax, dword [ebp - 0x230]
lea edi, [ebp - 0x2cc]
mov dword [ebp - 0x2d4], eax
xorps xmm0, xmm0
lea eax, [ecx + 0xa]
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 0x2d0], eax
movups xmmword [ebp - 0x2cc], xmm0
cmp eax, edx
jbe 0x47502e
or eax, edx
cmp eax, 0x7fffffff
jbe 0x474fed
mov eax, 0x7fffffff
jmp 0x474ff8
cmp eax, 0x16
mov ecx, 0x16
cmovb eax, ecx
mov dword [ebp - 0x290], eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x2cc]
push eax
call fcn.00442700
mov edx, dword [ebp - 0x290]
mov edi, eax
mov ecx, dword [ebp - 0x294]
add esp, 8
mov eax, dword [ebp - 0x2d0]
mov dword [ebp - 0x2cc], edi
push ecx
push dword [ebp - 0x2d4]
mov dword [ebp - 0x2bc], eax
push edi
mov dword [ebp - 0x2b8], edx
call fcn.0059ce90
mov ecx, dword [ebp - 0x294]
movq xmm0, qword [str._steamapps]
movq qword [edi + ecx], xmm0
mov ax, word [0x5d66ec]
mov word [edi + ecx + 8], ax
mov byte [edi + ecx + 0xa], 0
cmp dword [ebp - 0x2b8], 0xf
lea eax, [ebp - 0x2cc]
push 0xfde9
cmova eax, dword [ebp - 0x2cc]
push eax
lea eax, [ebp - 0x2ac]
mov byte [ebp - 4], 5
push eax
call fcn.00544480
add esp, 0x18
lea eax, [ebp - 0x2ac]
mov byte [ebp - 4], 6
push eax
call fcn.00475260
mov ecx, dword [ebp - 0x298]
mov byte [ebp - 4], 5
cmp ecx, 7
jbe 0x4750eb
mov edx, dword [ebp - 0x2ac]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4750e1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475246
push ecx
push edx
call fcn.0059a744
add esp, 8
mov ecx, dword [ebp - 0x2b8]
xor eax, eax
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 7
mov word [ebp - 0x2ac], ax
mov byte [ebp - 4], 4
cmp ecx, 0xf
jbe 0x475146
mov edx, dword [ebp - 0x2cc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x47513c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475246
push ecx
push edx
call fcn.0059a744
add esp, 8
mov edi, dword [ebp - 0x234]
push 3
push 0x5d66e0
lea eax, [esi + 1]
cmp edi, 0xf
push eax
push dword [ebp - 0x238]
lea ecx, [ebp - 0x248]
cmova ecx, dword [ebp - 0x248]
push ecx
call fcn.0046ad80
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
jne 0x474ca0
jmp 0x474bde
push ecx
push edx
call fcn.0059a744
add esp, 8
mov ecx, dword [ebp - 0x26c]
cmp ecx, 7
jbe 0x4751d0
mov edx, dword [ebp - 0x280]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4751c6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475255
push ecx
push edx
call fcn.0059a744
add esp, 8
xor eax, eax
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 7
mov word [ebp - 0x280], ax
mov ecx, dword [ebp - 0x24c]
cmp ecx, 7
jbe 0x475229
mov edx, dword [ebp - 0x260]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x47521f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475255
push ecx
push edx
call fcn.0059a744
add esp, 8
xor eax, eax
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.0059a5ad
mov esp, ebp
pop ebp
ret
call fcn.005ad975
call fcn.004481f0
call fcn.004581b0
call fcn.005ad975
int3