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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbdcc
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4e949c]
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 eax, ecx
mov dword [ebp - 0x224], eax
cmp dword [eax + 0x3c], 0
je 0x43362f
mov ebx, dword [eax + 0x24]
cmp dword [ebx - 0xc], 0
je 0x43362f
mov edi, dword [eax + 0x28]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov esi, dword [edi - 0xc]
call fcn.00464a00
add esp, 0xc
mov dword [ebp - 0x228], 0x104
lea eax, [ebp - 0x228]
mov dword [ebp - 0x22c], 1
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x22c]
push eax
xor eax, eax
test esi, esi
cmove edi, eax
mov eax, dword [ebp - 0x224]
push edi
push ebx
push dword [eax + 0x3c]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
call fcn.0040c140
mov ecx, eax
test ecx, ecx
je 0x433650
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x21c]
call fcn.00413b70
test al, al
jne 0x433272
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433250
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040c380
mov esi, dword [ebp - 0x21c]
mov edi, esi
mov dword [ebp - 4], 1
movzx eax, word [esi]
push eax
call fcn.00491e12
add esp, 4
test eax, eax
je 0x433365
movzx eax, word [edi + 2]
add edi, 2
push eax
call fcn.00491e12
add esp, 4
test eax, eax
jne 0x433295
cmp edi, esi
je 0x433365
mov edx, dword [esi - 0xc]
sub edi, esi
sar edi, 1
test edx, edx
js 0x43365a
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x4332e3
push edx
lea ecx, [ebp - 0x21c]
call fcn.00401cb0
mov esi, dword [ebp - 0x21c]
mov eax, dword [esi - 0xc]
lea edx, [esi + edi*2]
mov ebx, eax
sub ebx, edi
lea ecx, [ebx*2 + 2]
test ecx, ecx
je 0x433340
test edx, edx
jne 0x433313
call fcn.0046fa4e
mov dword [eax], 0x16
call fcn.0046f928
mov eax, 0x16
jmp 0x433342
lea eax, [eax*2 + 2]
cmp eax, ecx
jae 0x433335
call fcn.0046fa4e
mov dword [eax], 0x22
call fcn.0046f928
mov eax, 0x22
jmp 0x433342
push ecx
push edx
push esi
call fcn.00464480
add esp, 0xc
xor eax, eax
push eax
call fcn.004046c0
add esp, 4
test ebx, ebx
js 0x43365a
cmp ebx, dword [esi - 8]
jg 0x43365a
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
movzx eax, word [esi]
xor edi, edi
mov ebx, esi
test ax, ax
je 0x4333de
mov ecx, eax
push ecx
call fcn.00491e12
add esp, 4
test eax, eax
je 0x43338b
test edi, edi
mov eax, ebx
cmovne eax, edi
mov edi, eax
jmp 0x43338d
xor edi, edi
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x433373
test edi, edi
je 0x4333de
sub edi, esi
sar edi, 1
js 0x433664
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4333cc
push edi
lea ecx, [ebp - 0x21c]
call fcn.00401cb0
mov esi, dword [ebp - 0x21c]
cmp edi, dword [esi - 8]
jg 0x43365a
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
mov eax, dword [esi - 0xc]
or ebx, 0xffffffff
test eax, eax
jne 0x4333ef
xor edi, edi
jmp 0x43360f
cmp eax, 1
jg 0x433405
lea eax, [esi - 0x10]
push eax
call fcn.00401b10
add esp, 4
add eax, 0x10
jmp 0x433436
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x433415
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x433421
call fcn.0040c140
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push 1
push esi
lea ecx, [ebp - 0x220]
call fcn.00432dd0
mov eax, dword [ebp - 0x220]
mov edx, 0x4c6ed0
mov ecx, eax
nop dword [eax]
mov di, word [ecx]
cmp di, word [edx]
jne 0x433466
test di, di
je 0x433462
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x433466
add ecx, 4
add edx, 4
test di, di
jne 0x433440
xor edi, edi
jmp 0x43346b
sbb edi, edi
or edi, 1
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x433482
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x4334d4
mov eax, dword [esi - 0xc]
lea ecx, [ebp - 0x21c]
dec eax
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00433720
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.004139d0
mov edx, dword [ebp - 0x220]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4334ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x21c]
push 1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00433720
mov ecx, 0x4c6ed0
mov eax, dword [eax]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x433516
test dx, dx
je 0x433512
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x433516
add eax, 4
add ecx, 4
test dx, dx
jne 0x4334f0
xor edi, edi
jmp 0x43351b
sbb edi, edi
or edi, 1
mov edx, dword [ebp - 0x220]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x433538
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x43358a
mov eax, dword [esi - 0xc]
lea ecx, [ebp - 0x21c]
dec eax
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004336b0
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
call fcn.004139d0
mov edx, dword [ebp - 0x220]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x433584
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x224]
mov edi, dword [eax + 0x2c]
cmp dword [edi - 0xc], 0
je 0x433606
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4335c3
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.00401cb0
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 8], 0x104
jl 0x43366e
push edi
xor eax, eax
mov dword [esi - 0xc], 0x104
push esi
mov word [esi + 0x208], ax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [esi - 8]
push esi
call fcn.00483a12
add esp, 8
test eax, eax
js 0x43365a
cmp eax, dword [esi - 8]
jg 0x43365a
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x43362b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
jmp 0x433634
mov eax, 1
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.00462391
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401af0
push 0x80070057
call fcn.00401af0
push 0x80070057
call fcn.00401af0
push 0x80070057
call fcn.00401af0
int3