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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495249
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4be434]
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 0x43ff88
mov dword [esi + 0x10], 0x104
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x43ff7d
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + 0x208], cx
jmp 0x43ff9c
mov eax, 0x104
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00407480
mov edx, dword [ebp - 0x4c]
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 0x44], 0x208
mov dword [ebp - 0x48], 1
jb 0x43ffb4
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 0x440022
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4403a4
mov ecx, dword [esi + 0x10]
shr eax, 1
cmp eax, ecx
ja 0x43fff7
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x43ffef
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x440003
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00407480
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x44000d
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 0x4403a4
cmp dword [esi + 0x10], eax
je 0x4403a4
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x44003d
mov eax, dword [esi]
cmp word [eax], 0
je 0x4403a4
cmp dword [edi + 0x10], 0
lea ebx, [edi + 0x10]
je 0x440190
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x44005e
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x440190
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.00407740
cmp dword [edi + 0x14], 8
jb 0x4400a4
mov edi, dword [edi]
push dword [ebx]
lea ecx, [ebp - 0x40]
push edi
call fcn.00401d80
push 1
push 0x49c984
lea ecx, [ebp - 0x40]
call fcn.00401d80
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4400c8
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.00401d80
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.00407d00
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x44014d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x440143
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x440180
push edx
push ecx
call fcn.004876f4
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x440190
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x440186
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x440186
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
cmp byte [ebp + 0x20], 0
je 0x44038a
fld qword [0x4a4050]
fld qword [ebp + 0x18]
fcompi st(1)
fstp st(0)
jb 0x44038a
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4401b7
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x44038a
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 0x4401e8
cmp edi, ecx
je 0x44038a
sub edi, 2
cmp word [edi], 0x2e
jne 0x4401d7
sub edi, ecx
sar edi, 1
cmp edi, 0xffffffff
je 0x44038a
test edi, edi
je 0x44038a
push edx
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0040be60
push edi
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.0040be60
push 0x4a36f8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0043c6a0
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.00401d80
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 0x440302
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0041c350
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4402a9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44029f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x440378
push edx
push ecx
call fcn.004876f4
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 0x4403a0
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4402f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x440378
push edx
push ecx
call fcn.004876f4
add esp, 8
mov al, 1
jmp 0x4403a6
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x440338
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44032e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x440378
push edx
push ecx
call fcn.004876f4
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 0x440390
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44037e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44037e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
jmp 0x440390
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x440398
mov esi, dword [esi]
push esi
call edi
cmp eax, 0xffffffff
je 0x4403a4
mov al, 1
jmp 0x4403a6
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.00487702
mov esp, ebp
pop ebp
ret