Function at 0x417b30
Capabilities:
Query environment variable

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
push 0x48dc05
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x498
mov eax, dword [0x4b3100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x47c], esi
mov dword [ebp - 0x444], esi
push 0x104
lea eax, [ebp - 0x220]
mov dword [ebp - 0x444], esi
push eax
push str.USERPROFILE
mov dword [ebp - 0x460], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x417c60
cmp eax, 0x104
jae 0x417c60
xorps xmm0, xmm0
mov dword [ebp - 0x44c], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x448], 0
movups xmmword [ebp - 0x45c], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417be0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x45c]
call fcn.0043b8b0
push str.Documents
lea ecx, [ebp - 0x45c]
mov dword [ebp - 4], 6
call fcn.0042fad0
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x45c]
call fcn.00405cd0
jmp 0x417f9a
push 0x104
lea eax, [ebp - 0x428]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov byte [ebp - 0x444], 0
lea edx, [ebp - 0x428]
push dword [ebp - 0x444]
lea ecx, [ebp - 0x440]
call fcn.00447290
add esp, 4
mov byte [ebp - 0x444], 0
lea ecx, [ebp - 0x478]
push dword [ebp - 0x444]
mov dword [ebp - 4], 0
call fcn.00447300
add esp, 4
lea eax, [ebp - 0x4a8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x440]
call fcn.00405c00
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x478]
cmp dword [ebp - 0x464], 7
mov eax, dword [ebp - 0x468]
cmova ecx, dword [ebp - 0x478]
mov dword [ebp - 0x444], ecx
test eax, eax
je 0x417e02
add eax, eax
and eax, 0xfffffffe
cmp eax, 4
jl 0x417d18
mov eax, dword [ecx]
and eax, 0xffffffdf
sub eax, 0x3a0041
cmp eax, 0x1a
jb 0x417e02
movzx eax, word [ecx]
cmp eax, 0x5c
je 0x417e02
cmp eax, 0x2f
je 0x417e02
cmp dword [edx + 0x14], 7
mov edi, dword [edx + 0x10]
jbe 0x417d38
mov edx, dword [edx]
cmp edi, 2
jne 0x417de0
mov eax, dword [edx]
and eax, 0xffffffdf
sub eax, 0x3a0041
cmp eax, 0x1a
jae 0x417de8
xor al, al
movzx ecx, al
xorps xmm0, xmm0
add ecx, dword [ebp - 0x468]
xor esi, esi
movups xmmword [ebp - 0x45c], xmm0
add ecx, edi
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 7
mov word [ebp - 0x45c], si
mov byte [ebp - 4], 3
sub esp, 0x14
mov byte [ebp - 0x488], al
mov eax, dword [ebp - 0x444]
mov dword [ebp - 0x484], eax
mov eax, esp
mov dword [ebp - 0x490], edx
mov edx, dword [ebp - 0x468]
mov dword [ebp - 0x48c], edi
movups xmm0, xmmword [ebp - 0x490]
push ecx
lea ecx, [ebp - 0x45c]
mov dword [ebp - 0x460], 0x40
movups xmmword [eax], xmm0
mov dword [eax + 0x10], edx
call fcn.00437cc0
mov esi, dword [ebp - 0x47c]
jmp 0x417e2e
test edi, edi
je 0x417d54
movzx eax, word [edx + edi*2 - 2]
push eax
call fcn.00405950
test al, al
jne 0x417d54
mov al, 1
jmp 0x417d56
push edx
lea ecx, [ebp - 0x45c]
call fcn.0042fd70
lea eax, [ebp - 0x478]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x45c]
mov dword [ebp - 0x460], 0x80
call fcn.00405a80
mov dword [ebp - 4], 2
lea eax, [ebp - 0x45c]
mov byte [ebp - 4], 5
push eax
mov ecx, esi
call fcn.0042fd70
mov ecx, dword [ebp - 0x448]
cmp ecx, 7
jbe 0x417e87
mov edx, dword [ebp - 0x45c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417e7d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417fba
push ecx
push edx
call fcn.00460ed3
add esp, 8
mov ecx, dword [ebp - 0x494]
xor eax, eax
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 7
mov word [ebp - 0x45c], ax
cmp ecx, 7
jbe 0x417ee4
mov edx, dword [ebp - 0x4a8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417eda
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417fba
push ecx
push edx
call fcn.00460ed3
add esp, 8
mov ecx, dword [ebp - 0x464]
xor eax, eax
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x494], 7
mov word [ebp - 0x4a8], ax
cmp ecx, 7
jbe 0x417f41
mov edx, dword [ebp - 0x478]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417f37
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417fba
push ecx
push edx
call fcn.00460ed3
add esp, 8
mov ecx, dword [ebp - 0x42c]
xor eax, eax
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], 7
mov word [ebp - 0x478], ax
cmp ecx, 7
jbe 0x417f9a
mov edx, dword [ebp - 0x440]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417f90
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417fba
push ecx
push edx
call fcn.00460ed3
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00460925
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00474a77
int3