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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff626
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x53000c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push 0x20a
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 1
push 0
push eax
mov dword [ebp - 0x244], 0
call fcn.004bcaf0
add esp, 0xc
lea eax, [ebp - 0x244]
cmp dword [ebp + 0x20], 8
lea ecx, [ebp + 0xc]
cmovae ecx, dword [ebp + 0xc]
push eax
movzx eax, byte [ebp + 8]
shl eax, 8
add eax, 0x20019
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x244]
test ecx, ecx
je 0x47d94b
cmp dword [ebp + 0x38], 8
lea edx, [ebp - 0x228]
push edx
lea edx, [ebp - 0x224]
mov dword [ebp - 0x228], 0x104
push edx
push 0
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp word [ebp - 0x224], 0
je 0x47dad2
xor eax, eax
mov dword [ebp - 0x230], 0
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d980
sub ecx, edx
lea eax, [ebp - 0x224]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.0041a5b0
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x228], esp
xor eax, eax
push eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push 0x51c79c
mov word [ecx], ax
call fcn.0041a5b0
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
xor eax, eax
push 1
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push 0x51c810
mov word [ecx], ax
call fcn.0041a5b0
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 2
call fcn.0047d770
add esp, 0x30
lea eax, [ebp - 0x240]
cmp dword [ebp - 0x22c], 8
cmovae eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47da92
lea eax, [ebp - 0x240]
cmp edi, eax
je 0x47da4e
cmp dword [ebp - 0x22c], 8
mov ecx, edi
push dword [ebp - 0x230]
cmovae eax, dword [ebp - 0x240]
push eax
call fcn.0041a5b0
mov edx, dword [ebp - 0x22c]
cmp edx, 8
jb 0x47da8e
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47da84
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47db76
push edx
push ecx
call fcn.0048e9ad
add esp, 8
mov bl, 1
jmp 0x47dad4
mov edx, dword [ebp - 0x22c]
cmp edx, 8
jb 0x47dad2
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47dac8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47db7b
push edx
push ecx
call fcn.0048e9ad
add esp, 8
xor bl, bl
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x47db0e
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47db04
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47db80
push edx
push ecx
call fcn.0048e9ad
add esp, 8
mov edx, dword [ebp + 0x38]
xor eax, eax
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 7
mov word [ebp + 0xc], ax
cmp edx, 8
jb 0x47db58
mov ecx, dword [ebp + 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47db4e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47db85
push edx
push ecx
call fcn.0048e9ad
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
ret
call fcn.004c5929
call fcn.004c5929
call fcn.004c5929
call fcn.004c5929
int3