Function at 0x43ff00
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query environment variable
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x54246a
push eax
mov dword fs:[0], esp
mov eax, 0x26a0
push ebx
call fcn.00512970
push esi
push edi
push 0x2000
lea eax, [ebp - 0x26b0]
mov dword [ebp - 0x14], ecx
push 0
push eax
call fcn.00513df0
mov dword [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
mov edi, dword [ebx + 8]
sub esp, 0xc
mov eax, esp
mov dword [ebp - 4], 1
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmm0, xmmword [edi]
movups xmmword [eax], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x50]
mov dword [edi + 0x14], 7
mov word [edi], ax
mov byte [ebp - 4], 1
call fcn.0043dd60
mov esi, eax
add esp, 0x18
cmp edi, esi
je 0x43fff2
mov ecx, edi
call fcn.00413120
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00413120
mov edx, dword [edi + 0x10]
test edx, edx
je 0x4400aa
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x44000f
mov ecx, dword [edi]
lea eax, [edx - 1]
or esi, 0xffffffff
cmp eax, esi
cmovb esi, eax
cmp word [ecx + esi*2], 0x5c
lea eax, [ecx + esi*2]
je 0x440031
cmp eax, ecx
je 0x44003a
sub eax, 2
cmp word [eax], 0x5c
jne 0x440024
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x440066
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x440044
mov ecx, dword [edi]
cmp word [ecx + esi*2], 0x2f
lea eax, [ecx + esi*2]
je 0x44005d
nop
cmp eax, ecx
je 0x4400aa
sub eax, 2
cmp word [eax], 0x2f
jne 0x440050
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x4400aa
inc eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
cmp edx, eax
jb 0x440a79
sub edx, eax
mov ecx, 0xffffffff
cmp edx, 0xffffffff
cmovb ecx, edx
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x44009b
mov edx, dword [edi]
push ecx
lea eax, [edx + eax*2]
push eax
lea ecx, [ebp - 0x80]
call fcn.00408810
jmp 0x4400b3
push edi
lea ecx, [ebp - 0x80]
call fcn.00411520
mov byte [ebp - 4], 6
mov eax, dword [0x68283c]
test eax, eax
je 0x4400c5
cmp eax, 0xa
jae 0x440109
push ecx
push 0x669d74
lea ecx, [ebp - 0x80]
call fcn.004411c0
test eax, eax
jne 0x440109
mov esi, dword [ebp - 0x70]
lea edx, [ebp - 0x80]
mov eax, 4
cmp esi, eax
cmovb eax, esi
cmp dword [ebp - 0x6c], 8
cmovae edx, dword [ebp - 0x80]
sub esi, eax
lea ecx, [edx + eax*2]
lea eax, [esi*2 + 2]
push eax
push ecx
push edx
call fcn.00513870
add esp, 0xc
mov dword [ebp - 0x70], esi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov esi, dword [eax]
cmp esi, eax
je 0x440362
nop dword [eax]
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
jb 0x44012b
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x80]
call fcn.004411c0
cmp eax, 0xffffffff
jne 0x440146
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [ecx + 4]
jne 0x440120
mov eax, dword [ebp - 0x18]
cmp esi, eax
je 0x440362
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], eax
cmp eax, ecx
je 0x4401b4
mov edx, dword [ebx + 0xc]
cmp dword [edx + 0x14], 8
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x18], ecx
jb 0x440172
mov edx, dword [edx]
cmp dword [eax + 0x14], 8
mov ecx, eax
mov esi, dword [eax + 0x10]
jb 0x44017f
mov ecx, dword [eax]
cmp esi, dword [ebp - 0x18]
jne 0x4401b7
test esi, esi
je 0x4401a7
sub ecx, edx
mov dword [ebp - 0x18], ecx
nop dword [eax]
movzx ecx, word [ecx + edx]
movzx eax, word [edx]
cmp cx, ax
jne 0x4401af
mov ecx, dword [ebp - 0x18]
add edx, 2
sub esi, 1
jne 0x440190
mov eax, dword [ebp - 0x14]
add eax, 0xffffffe8
jmp 0x4401b7
mov eax, dword [ebp - 0x1c]
jmp 0x4401b7
mov eax, dword [ebx + 0xc]
cmp edi, eax
je 0x4401cf
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4401c6
mov eax, dword [eax]
push ecx
push eax
mov ecx, edi
call fcn.00413180
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push edi
call fcn.00440a90
mov esi, eax
test esi, esi
jns 0x440a43
cmp esi, 0xc015001d
je 0x440a43
test byte [ebx + 0x14], 2
je 0x44035b
push 0x1fe
lea eax, [ebp - 0x2b0]
push 0
push eax
call fcn.00513df0
add esp, 0xc
lea eax, [ebp - 0x2b0]
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x3c], 0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x440241
sub ecx, edx
lea eax, [ebp - 0x2b0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x50]
call fcn.00408810
push 1
push 0x669d70
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 7
call fcn.00441bb0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x68], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x58], xmm0
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0xa
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4402ba
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x68]
push eax
call fcn.00441bb0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xb0], xmm0
movups xmmword [ebp - 0x9c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x20], xmm0
movq qword [ebp - 0x8c], xmm0
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x9c]
cmp edi, eax
je 0x440340
mov ecx, edi
call fcn.00413120
movups xmm0, xmmword [ebp - 0xb0]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [edi + 0x10], xmm0
xor eax, eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
nop
lea ecx, [ebp - 0x9c]
call fcn.00413120
lea ecx, [ebp - 0x68]
call fcn.00413120
lea ecx, [ebp - 0x50]
call fcn.00413120
xor esi, esi
jmp 0x440a43
test byte [ebx + 0x14], 1
jne 0x440390
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push edi
call fcn.00440a90
mov esi, eax
test esi, esi
jns 0x440a43
cmp esi, 0xc015001d
je 0x440a43
test byte [ebx + 0x14], 4
je 0x44039a
mov esi, 0xc0000225
jmp 0x440a43
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4403a4
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
cmp eax, 0xffffffff
jne 0x44035b
mov dword [ebp - 0x84], 0
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 0xf
push eax
push 0x669d88
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x440531
xor esi, esi
test eax, eax
jne 0x44052b
push 0x1fe
push eax
lea eax, [ebp - 0x6b0]
push eax
call fcn.00513df0
add esp, 0xc
lea eax, [ebp - 0x4b0]
push 0x1fe
push 0
push eax
call fcn.00513df0
add esp, 0xc
mov dword [ebp - 0x14], 0xff
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x6b0]
push eax
push esi
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x18], eax
call fcn.00411470
push eax
lea eax, [ebp - 0x4b0]
push eax
call fcn.00527fb5
add esp, 8
test eax, eax
jne 0x44051b
push 0x1fe
push eax
lea eax, [ebp - 0x2b0]
push eax
call fcn.00513df0
add esp, 0xc
mov dword [ebp - 0x14], 0xff
test byte [ebx + 0x14], 8
lea eax, [ebp - 0x2b0]
push 0xff
push eax
je 0x4404a4
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0x4404aa
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x44051e
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x9c]
call fcn.004087c0
push 0x669d84
mov edx, eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x68]
call fcn.00441920
add esp, 4
lea ecx, [ebp - 0x4b0]
mov byte [ebp - 4], 0x11
push ecx
mov edx, eax
lea ecx, [ebp - 0x50]
call fcn.00441920
add esp, 4
mov ecx, edi
push eax
call fcn.004114b0
lea ecx, [ebp - 0x50]
call fcn.00413120
lea ecx, [ebp - 0x68]
call fcn.00413120
lea ecx, [ebp - 0x9c]
call fcn.00413120
xor esi, esi
jmp 0x440a32
mov eax, dword [ebp - 0x18]
inc esi
cmp esi, 0x1000
jl 0x4403e1
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx + 0x10]
test edx, edx
je 0x440613
mov eax, bind
sub eax, edx
cmp eax, 1
jb 0x440a7e
cmp dword [ecx + 0x14], 8
jb 0x440557
mov ecx, dword [ecx]
push 1
push 0x669e04
push edx
push ecx
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x68]
call fcn.00441b10
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x80]
cmp dword [ebp - 0x6c], 8
lea ecx, [ebp - 0x68]
push dword [ebp - 0x70]
cmovae eax, dword [ebp - 0x80]
push eax
call fcn.00441bb0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xb0], xmm0
movups xmmword [ebp - 0x50], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x20], xmm0
movq qword [ebp - 0x40], xmm0
xor ecx, ecx
mov dword [eax + 0x10], 0
mov word [eax], cx
lea ecx, [ebp - 0x38]
mov dword [eax + 0x14], 7
call fcn.00413120
movups xmm0, xmmword [ebp - 0xb0]
movups xmmword [ebp - 0x38], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [ebp - 0x28], xmm0
xor eax, eax
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.00413120
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xf
call fcn.00413120
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call esi
cmp eax, 0xffffffff
jne 0x440a6a
mov eax, dword [ebx + 0x18]
push dword [eax + 4]
lea eax, [ebp - 0x9c]
push eax
call fcn.00440f90
push 1
push 0x669e00
mov ecx, eax
mov byte [ebp - 4], 0x17
call fcn.00441bb0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x68], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x58], xmm0
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x1a
lea eax, [ebp - 0x80]
cmp dword [ebp - 0x6c], 8
lea ecx, [ebp - 0x68]
push dword [ebp - 0x70]
cmovae eax, dword [ebp - 0x80]
push eax
call fcn.00441bb0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xb0], xmm0
movups xmmword [ebp - 0x50], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x20], xmm0
movq qword [ebp - 0x40], xmm0
xor ecx, ecx
mov dword [eax + 0x10], 0
mov word [eax], cx
lea ecx, [ebp - 0x38]
mov dword [eax + 0x14], 7
call fcn.00413120
movups xmm0, xmmword [ebp - 0xb0]
movups xmmword [ebp - 0x38], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [ebp - 0x28], xmm0
xor eax, eax
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.00413120
lea ecx, [ebp - 0x68]
call fcn.00413120
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xf
call fcn.00413120
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call esi
cmp eax, 0xffffffff
jne 0x440a6a
test byte [ebx + 0x14], 8
lea eax, [ebp - 0x26b0]
push 0x1000
push eax
je 0x44073c
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0x440742
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x26b0]
push eax
lea ecx, [ebp - 0x9c]
call fcn.004087c0
push 1
push 0x669e0c
mov ecx, eax
mov byte [ebp - 4], 0x1f
call fcn.00441bb0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x68], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x58], xmm0
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x22
lea eax, [ebp - 0x80]
cmp dword [ebp - 0x6c], 8
lea ecx, [ebp - 0x68]
push dword [ebp - 0x70]
cmovae eax, dword [ebp - 0x80]
push eax
call fcn.00441bb0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xb0], xmm0
movups xmmword [ebp - 0x50], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x20], xmm0
movq qword [ebp - 0x40], xmm0
xor ecx, ecx
mov dword [eax + 0x10], 0
mov word [eax], cx
lea ecx, [ebp - 0x38]
mov dword [eax + 0x14], 7
call fcn.00413120
movups xmm0, xmmword [ebp - 0xb0]
movups xmmword [ebp - 0x38], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [ebp - 0x28], xmm0
xor eax, eax
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.00413120
lea ecx, [ebp - 0x68]
call fcn.00413120
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xf
call fcn.00413120
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call esi
cmp eax, 0xffffffff
jne 0x440a6a
push 0x1000
lea eax, [ebp - 0x26b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x26b0]
push eax
lea ecx, [ebp - 0x9c]
call fcn.004087c0
push 0x669e08
mov edx, eax
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0x68]
call fcn.00441920
add esp, 4
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x28
push ecx
mov edx, eax
lea ecx, [ebp - 0x50]
call fcn.004419c0
add esp, 4
lea ecx, [ebp - 0x38]
push eax
call fcn.004114b0
lea ecx, [ebp - 0x50]
call fcn.00413120
lea ecx, [ebp - 0x68]
call fcn.00413120
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xf
call fcn.00413120
lea ecx, [ebp - 0x38]
call fcn.0043de30
test al, al
jne 0x440a6a
lea eax, [ebp - 0x26b0]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x26b0]
push eax
lea ecx, [ebp - 0x9c]
call fcn.004087c0
push 0x669e1c
mov edx, eax
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x68]
call fcn.00441920
add esp, 4
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x2a
push ecx
mov edx, eax
lea ecx, [ebp - 0x50]
call fcn.004419c0
add esp, 4
lea ecx, [ebp - 0x38]
push eax
call fcn.004114b0
lea ecx, [ebp - 0x50]
call fcn.00413120
lea ecx, [ebp - 0x68]
call fcn.00413120
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xf
call fcn.00413120
lea ecx, [ebp - 0x38]
call fcn.0043de30
test al, al
jne 0x440a6a
push 0x1000
lea eax, [ebp - 0x26b0]
push eax
push 0x669e10
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x26b0]
push 0x669e24
push eax
call fcn.00528244
add esp, 0xc
test eax, eax
je 0x440a2d
nop dword [eax]
push eax
lea ecx, [ebp - 0x9c]
call fcn.004087c0
push 0x669e54
mov edx, eax
mov byte [ebp - 4], 0x2b
lea ecx, [ebp - 0x68]
call fcn.00441920
add esp, 4
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x2c
push ecx
mov edx, eax
lea ecx, [ebp - 0x50]
call fcn.004419c0
add esp, 4
lea ecx, [ebp - 0x38]
push eax
call fcn.004114b0
lea ecx, [ebp - 0x50]
call fcn.00413120
lea ecx, [ebp - 0x68]
call fcn.00413120
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xf
call fcn.00413120
lea ecx, [ebp - 0x38]
call fcn.0043de30
test al, al
jne 0x440a6a
lea eax, [ebp - 0xa0]
push eax
push 0x669e20
push dword [ebp - 0xa0]
call fcn.00528244
add esp, 0xc
test eax, eax
jne 0x4409a0
mov esi, 0xc0000225
mov eax, dword [ebp - 0x84]
test eax, eax
jle 0x440a43
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x80]
call fcn.00413120
lea ecx, [ebp - 0x38]
call fcn.00413120
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.00411480
xor esi, esi
jmp 0x440a32
call fcn.00413d60
call fcn.004018b0
int3