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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493209
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4be4bc]
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 0x433368
mov dword [esi + 0x10], 0x104
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x43335d
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + 0x208], cx
jmp 0x43337c
mov eax, 0x104
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.004137f0
mov edx, dword [ebp - 0x4c]
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 0x44], 0x208
mov dword [ebp - 0x48], 1
jb 0x433394
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 0x433402
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x433784
mov ecx, dword [esi + 0x10]
shr eax, 1
cmp eax, ecx
ja 0x4333d7
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x4333cf
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x4333e3
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.004137f0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4333ed
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 0x433784
cmp dword [esi + 0x10], eax
je 0x433784
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x43341d
mov eax, dword [esi]
cmp word [eax], 0
je 0x433784
cmp dword [edi + 0x10], 0
lea ebx, [edi + 0x10]
je 0x433570
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x43343e
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x433570
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.00402790
cmp dword [edi + 0x14], 8
jb 0x433484
mov edi, dword [edi]
push dword [ebx]
lea ecx, [ebp - 0x40]
push edi
call fcn.00402410
push 1
push 0x49ba88
lea ecx, [ebp - 0x40]
call fcn.00402410
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4334a8
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.00402410
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.004037e0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x43352d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433523
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433560
push edx
push ecx
call fcn.0048c947
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x433570
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433566
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x433566
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
add esp, 8
cmp byte [ebp + 0x20], 0
je 0x43376a
fld qword [0x4a06a8]
fld qword [ebp + 0x18]
fcompi st(1)
fstp st(0)
jb 0x43376a
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x433597
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x43376a
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 0x4335c8
cmp edi, ecx
je 0x43376a
sub edi, 2
cmp word [edi], 0x2e
jne 0x4335b7
sub edi, ecx
sar edi, 1
cmp edi, 0xffffffff
je 0x43376a
test edi, edi
je 0x43376a
push edx
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00407090
push edi
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00407090
push 0x49fa98
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0042f300
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.00402410
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 0x4336e2
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0041b400
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x433689
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43367f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433758
push edx
push ecx
call fcn.0048c947
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 0x433780
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4336d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433758
push edx
push ecx
call fcn.0048c947
add esp, 8
mov al, 1
jmp 0x433786
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x433718
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43370e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433758
push edx
push ecx
call fcn.0048c947
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 0x433770
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43375e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x43375e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
add esp, 8
jmp 0x433770
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x433778
mov esi, dword [esi]
push esi
call edi
cmp eax, 0xffffffff
je 0x433784
mov al, 1
jmp 0x433786
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.0048cbb4
mov esp, ebp
pop ebp
ret