Function at 0x57a9c0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x638
mov eax, dword [0x5f3418]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x62c], 0
test ecx, ecx
je 0x57aa97
mov edi, edx
mov esi, ecx
movzx ebx, byte [edx + 0xb]
test bl, bl
jns 0x57a9f9
mov eax, dword [edi + 4]
jmp 0x57a9fe
mov eax, ebx
and eax, 0x7f
test eax, eax
je 0x57aa97
mov ecx, dword [ebp + 0x10]
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x57aa16
mov eax, dword [ecx + 4]
jmp 0x57aa19
and eax, 0x7f
xor ecx, ecx
test eax, eax
je 0x57aa97
mov edx, 0x208
lea eax, [ebp - 0x218]
push edx
push ecx
push eax
call fcn.005191b0
add esp, 0xc
lea eax, [ebp - 0x420]
mov ecx, 0x208
push ecx
xor ecx, ecx
push ecx
push eax
call fcn.005191b0
add esp, 0xc
mov eax, 0x206
mov dword [ebp - 0x634], eax
mov dword [ebp - 0x638], eax
xor eax, eax
inc eax
mov dword [ebp - 0x630], eax
test bl, bl
jns 0x57aa6d
mov edi, dword [edi]
lea ecx, [ebp - 0x62c]
push ecx
push eax
xor ebx, ebx
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x57aab0
mov eax, dword [ebp - 0x62c]
test eax, eax
je 0x57aa99
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x57aa99
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00512ee3
mov eax, ebx
add esp, 0x638
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
cmp byte [eax + 0xb], 0
jns 0x57aabb
mov eax, dword [eax]
lea edi, [ebp - 0x218]
lea ecx, [ebp - 0x634]
lea esi, [ebp - 0x630]
push ecx
push edi
push esi
push 0
push eax
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x57aae7
xor ebx, ebx
jmp 0x57aa84
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0xb]
test cl, cl
jns 0x57aaf7
mov edx, dword [eax + 4]
jmp 0x57aafc
mov edx, ecx
and edx, 0x7f
test edx, edx
je 0x57ab28
test cl, cl
jns 0x57ab06
mov eax, dword [eax]
lea ecx, [ebp - 0x638]
push ecx
lea ecx, [ebp - 0x420]
push ecx
push esi
push 0
push eax
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x57aae3
lea esi, [ebp - 0x628]
mov ecx, esi
push edi
call fcn.005477d0
movzx eax, byte [esi + 0xb]
mov edi, eax
and edi, 0x7f
test al, al
jns 0x57ab49
mov edi, dword [ebp - 0x624]
jns 0x57ab59
push dword [ebp - 0x628]
call fcn.0050fc7c
add esp, 4
test edi, edi
je 0x57aae3
push 0x208
push 0
push esi
call fcn.005191b0
add esp, 0xc
lea edi, [ebp - 0x644]
mov ecx, edi
lea eax, [ebp - 0x420]
push eax
call fcn.005477d0
movzx eax, byte [edi + 0xb]
mov edi, eax
and edi, 0x7f
test al, al
jns 0x57ab94
mov edi, dword [ebp - 0x640]
jns 0x57aba4
push dword [ebp - 0x644]
call fcn.0050fc7c
add esp, 4
mov eax, dword [ebp + 0x10]
cmp byte [eax + 0xb], 0
jns 0x57abaf
mov eax, dword [eax]
test edi, edi
jne 0x57abdb
push eax
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x57aae3
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
jmp 0x57aa84
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
push str._s_s_s
push 0x104
push esi
call fcn.00549e40
add esp, 0x18
test eax, eax
jns 0x57abca
jmp 0x57aae3