Function at 0x43efc0
Capabilities:
Check if file exists
Query environment variable
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x47a49d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a8
mov eax, dword [0x4994a0]
xor eax, dword [esp + 0x1b4]
push ebx
push edi
mov ebx, dword [esp + 0x1c0]
mov dword [esp + 0x1ac], eax
mov edi, ecx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x80]
push ecx
push 0
push 0
push 0
push ebx
mov dword [esp + 0x88], edi
mov byte [esp + 0x3b], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x43f051
xor al, al
jmp 0x43f62c
mov edx, dword [esp + 0x28]
inc edx
push ebp
push edx
call fcn.0046b3ee
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x58], ebp
jne 0x43f071
xor al, al
jmp 0x43f62b
mov dword [esp + 0x18], 0
push esi
lea ebx, [ebx]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x74]
push ecx
push 0
push 0
push 0
inc eax
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
push ebp
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
test esi, esi
mov dword [esp + 0x3c], esi
jne 0x43f60c
mov eax, dword [esp + 0x24]
test eax, eax
jbe 0x43f60c
lea ecx, [esp + 0x98]
mov byte [eax + ebp], 0
call fcn.004660f0
lea ecx, [esp + 0x34]
push ecx
push ebp
push ebx
mov dword [esp + 0x1cc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x43f5f5
lea edx, [esp + 0x98]
push edx
push ebx
mov ecx, edi
call fcn.0043dfd0
mov eax, dword [esp + 0xa0]
test eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x2c], esi
jle 0x43f5e6
mov eax, dword [esp + 0x9c]
mov ebp, dword [eax + esi*4]
test ebp, ebp
je 0x43f5d1
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebp
call fcn.00416bc0
mov eax, dword [eax]
push str._Default_
push eax
call fcn.004578d3
mov ebx, eax
mov eax, dword [esp + 0x58]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43f167
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x43f587
lea eax, [esp + 0x4c]
push eax
mov ecx, ebp
call fcn.00416bf0
lea ecx, [esp + 0x48]
push ecx
mov ecx, ebp
mov byte [esp + 0x1c4], 1
call fcn.00416bf0
push eax
lea edx, [esp + 0x68]
push str.CLSID_
push edx
mov byte [esp + 0x1cc], 2
call fcn.00402a60
push str.InProcServer32
push eax
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x1d8], 3
call fcn.00405860
mov eax, dword [eax]
add esp, 0x18
lea ecx, [esp + 0x44]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
mov eax, dword [esp + 0x40]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43f1fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
mov byte [esp + 0x1c0], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f221
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x1c0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f247
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x43f561
lea ecx, [esp + 0x80]
call fcn.004660f0
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x80]
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x1c8], 4
call fcn.0043dfd0
mov eax, dword [esp + 0x88]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], ecx
jle 0x43f542
mov edx, dword [esp + 0x84]
mov esi, dword [edx + ecx*4]
test esi, esi
je 0x43f525
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00416bc0
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
mov byte [esp + 0x1c4], 5
call fcn.00416bc0
mov eax, dword [eax]
push str._Default_
push eax
call fcn.004578d3
mov ebx, eax
mov eax, dword [esp + 0x60]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43f2f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x43f4bd
push 0
push 0x48493c
lea ecx, [esp + 0x1c]
call fcn.0042a1c0
mov edi, eax
test edi, edi
lea ecx, [esp + 0x14]
jl 0x43f3cd
lea eax, [edi + 1]
push eax
push 0x48493c
call fcn.0042a1c0
sub eax, edi
inc eax
push eax
push edi
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
call fcn.004239b0
push 0
push 0x482af8
lea ecx, [esp + 0x20]
call fcn.0042a1c0
test eax, eax
jge 0x43f368
mov eax, dword [esi + 4]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x43f38f
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x43f3c4
mov eax, dword [esi + 4]
sub eax, 0x10
mov byte [esp + 0x13], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f399
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f3b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call fcn.0046b3f3
lea ecx, [esp + 0x1c]
jmp 0x43f491
lea ecx, [esp + 0x18]
jmp 0x43f4b8
push 0
push 0x484a54
call fcn.0042a1c0
mov edi, eax
test edi, edi
jl 0x43f4bd
lea eax, [edi + 1]
push eax
push 0x484a54
lea ecx, [esp + 0x1c]
call fcn.0042a1c0
sub eax, edi
inc eax
push eax
push edi
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x20]
call fcn.004239b0
mov edi, dword [esp + 0x20]
push 0x104
lea edx, [esp + 0xb4]
push edx
push edi
mov byte [esp + 0x1cc], 6
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [esp + 0xb0]
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.00408390
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x43f4ac
mov eax, dword [esi + 4]
sub eax, 0x10
mov byte [esp + 0x13], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43f46b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f487
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call fcn.0046b3f3
lea ecx, [esp + 0x24]
add esp, 4
call fcn.00413d20
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c0], 4
call fcn.00413d20
jmp 0x43f525
mov byte [esp + 0x1c0], 5
lea ecx, [esp + 0x20]
call fcn.00413d20
mov eax, dword [esi + 4]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f4da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f4f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call fcn.0046b3f3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x1c0], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f525
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
inc ecx
cmp ecx, eax
mov dword [esp + 0x28], ecx
jl 0x43f290
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x80]
mov byte [esp + 0x1c0], 1
call fcn.00466107
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x1c0], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f587
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp + 4]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f5a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f5c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ebp
call fcn.0046b3f3
mov ebx, dword [esp + 0x1cc]
add esp, 4
mov eax, dword [esp + 0x54]
inc esi
cmp esi, eax
mov dword [esp + 0x2c], esi
jl 0x43f113
mov ebp, dword [esp + 0x5c]
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x98]
mov dword [esp + 0x1c0], 0xffffffff
call fcn.00466107
mov ecx, dword [esp + 0x1c]
inc ecx
test esi, esi
mov dword [esp + 0x1c], ecx
je 0x43f080
push ebp
call fcn.0046b3f3
mov al, byte [esp + 0x17]
add esp, 4
pop esi
pop ebp
mov ecx, dword [esp + 0x1b0]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1ac]
xor ecx, dword [esp + 0x1bc]
pop edi
pop ebx
call fcn.00456aa7
add esp, 0x1b4
ret 4