Function at 0x435ac0
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e6f9
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4b74b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x50], 0
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x4c], edx
cmp ecx, 0x104
jb 0x435b28
mov dword [esi + 0x10], 0x104
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x435b1d
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + 0x208], cx
jmp 0x435b3c
mov eax, 0x104
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00407e40
mov edx, dword [ebp - 0x4c]
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 0x44], 0x208
mov dword [ebp - 0x48], 1
jb 0x435b54
mov eax, dword [esi]
lea ecx, [ebp - 0x44]
push ecx
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x435bc2
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x435f44
mov ecx, dword [esi + 0x10]
shr eax, 1
cmp eax, ecx
ja 0x435b97
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x435b8f
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x435ba3
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00407e40
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x435bad
mov eax, dword [esi]
lea ecx, [ebp - 0x44]
push ecx
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push dword [ebp - 0x4c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x435f44
cmp dword [esi + 0x10], eax
je 0x435f44
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x435bdd
mov eax, dword [esi]
cmp word [eax], 0
je 0x435f44
cmp dword [edi + 0x10], 0
lea ebx, [edi + 0x10]
je 0x435d30
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x435bfe
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x435d30
xor eax, eax
mov dword [ebp - 4], 0
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
mov eax, dword [ebx]
inc eax
mov dword [ebp - 0x30], 0
push eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x50], 1
call fcn.00407ff0
cmp dword [edi + 0x14], 8
jb 0x435c44
mov edi, dword [edi]
push dword [ebx]
lea ecx, [ebp - 0x40]
push edi
call fcn.00401cf0
push 1
push 0x496a90
lea ecx, [ebp - 0x40]
call fcn.00401cf0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x435c68
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.00401cf0
mov edx, eax
mov ecx, dword [edx]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x28], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x24], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edx + 0x10]
mov word [edx], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
mov ecx, esi
push eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
call fcn.004023e0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x435ced
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x435ce3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435d20
push edx
push ecx
call fcn.00487869
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x435d30
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x435d26
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x435d26
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00487869
add esp, 8
cmp byte [ebp + 0x20], 0
je 0x435f2a
fld qword [0x49a648]
fld qword [ebp + 0x18]
fcompi st(1)
fstp st(0)
jb 0x435f2a
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x435d57
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x435f2a
lea edx, [eax - 1]
or eax, 0xffffffff
cmp edx, eax
cmovb eax, edx
cmp word [ecx + eax*2], 0x2e
lea edi, [ecx + eax*2]
je 0x435d88
cmp edi, ecx
je 0x435f2a
sub edi, 2
cmp word [edi], 0x2e
jne 0x435d77
sub edi, ecx
sar edi, 1
cmp edi, 0xffffffff
je 0x435f2a
test edi, edi
je 0x435f2a
push edx
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0040d920
push edi
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.0040d920
push 0x499b48
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00431640
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.00401cf0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
cmp eax, 0xffffffff
je 0x435ea2
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0041bf10
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x435e49
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x435e3f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435f18
push edx
push ecx
call fcn.00487869
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x435f40
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x435e91
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435f18
push edx
push ecx
call fcn.00487869
add esp, 8
mov al, 1
jmp 0x435f46
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x435ed8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x435ece
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435f18
push edx
push ecx
call fcn.00487869
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x435f30
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x435f1e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x435f1e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00487869
add esp, 8
jmp 0x435f30
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x435f38
mov esi, dword [esi]
push esi
call edi
cmp eax, 0xffffffff
je 0x435f44
mov al, 1
jmp 0x435f46
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00487877
mov esp, ebp
pop ebp
ret