Function at 0x46d430
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b05ad
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4d9164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x30]
push eax
call fcn.0046cee0
add esp, 4
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
call fcn.0041ea30
lea eax, [ebp - 0x48]
mov ecx, 0x4d909c
push eax
call fcn.0041e870
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x46d4be
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d4b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d99f
push edx
push ecx
call fcn.00481131
add esp, 8
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x46d4ff
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d4f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d99f
push edx
push ecx
call fcn.00481131
add esp, 8
lea eax, [ebp - 0x30]
push eax
call fcn.0046d1f0
add esp, 4
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 1
call fcn.0041ea30
lea eax, [ebp - 0x48]
mov ecx, 0x4d90b4
push eax
call fcn.0041e870
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x46d563
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d559
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d9a4
push edx
push ecx
call fcn.00481131
add esp, 8
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x46d5a4
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d59a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d9a4
push edx
push ecx
call fcn.00481131
add esp, 8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edx, 2
test eax, eax
je 0x46d645
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00481be8
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
push esi
push edi
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x46d636
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46d5f1
sub ecx, edx
mov dword [ebp - 0x30], 0
sar ecx, 1
xor eax, eax
push ecx
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.00437950
test edi, edi
je 0x46d66c
push 2
push edi
call fcn.00481131
add esp, 8
jmp 0x46d66c
test edi, edi
je 0x46d645
push 2
push edi
call fcn.00481131
add esp, 8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x30], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0x48]
call fcn.0041ea30
lea eax, [ebp - 0x48]
mov ecx, 0x4d90cc
push eax
call fcn.0041e870
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x46d6c7
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d6bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d9a9
push edx
push ecx
call fcn.00481131
add esp, 8
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x46d708
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d6fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d9a9
push edx
push ecx
call fcn.00481131
add esp, 8
push 0
push 0
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x46d7bb
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00481be8
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
push esi
push edi
push str.ProgramFiles
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x46d7a5
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46d760
sub ecx, edx
mov dword [ebp - 0x30], 0
sar ecx, 1
xor eax, eax
push ecx
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.00437950
test edi, edi
je 0x46d7d3
push 2
push edi
call fcn.00481131
add esp, 8
jmp 0x46d7d3
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x46d7bb
push 2
push edi
call fcn.00481131
add esp, 8
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x30]
push dword [ebp - 0x14]
push 0x4c436b
push eax
call fcn.004566a0
add esp, 0xc
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 5
push eax
lea ecx, [ebp - 0x48]
call fcn.0041ea30
lea eax, [ebp - 0x48]
mov ecx, 0x4d90e4
push eax
call fcn.0041e870
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x46d82e
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d824
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d9ae
push edx
push ecx
call fcn.00481131
add esp, 8
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x46d86f
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d865
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d9ae
push edx
push ecx
call fcn.00481131
add esp, 8
lea eax, [ebp - 0x48]
push eax
call fcn.0046c880
add esp, 4
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 6
call fcn.0041ea30
lea eax, [ebp - 0x30]
mov ecx, 0x4d90fc
push eax
call fcn.0041e870
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x46d8d3
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d8c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d9b3
push edx
push ecx
call fcn.00481131
add esp, 8
mov edx, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x46d914
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d90a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d9b3
push edx
push ecx
call fcn.00481131
add esp, 8
xor eax, eax
mov dword [ebp - 0x38], 0
cmp dword [0x4d90c8], 8
mov word [ebp - 0x48], ax
mov eax, 0x4d90b4
cmovae eax, dword [0x4d90b4]
push eax
mov dword [ebp - 0x34], 7
mov byte [0x4dcfcc], 1
call fcn.00472c00
test al, al
mov byte [0x4dcfce], 1
mov eax, 0x4d90fc
mov byte [0x4dcfcf], 1
sete byte [0x4dcfcd]
cmp dword [0x4d9110], 8
cmovae eax, dword [0x4d90fc]
push eax
call fcn.00472c00
add esp, 8
test al, al
sete byte [0x4dcfe0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004810ea
mov esp, ebp
pop ebp
ret
call fcn.004861f9
call fcn.004861f9
call fcn.004861f9
call fcn.004861f9
call fcn.004861f9
int3