Function at 0x417500
Capabilities:
Get common file path
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 0x41e666
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x70], edi
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
lea esi, [edi + 0x18]
mov dword [ebp - 0x6c], esi
mov dword [esi], eax
push 0x24
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.0041bee5
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
push dword [esi + 4]
push 0x10
call fcn.00417950
push 0
push 2
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004164d0
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0
push eax
push 0
push 0
push 0x421714
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x4176f9
mov edx, dword [ebp - 0x64]
test edx, edx
je 0x4176f9
mov ecx, edx
mov dword [ebp - 0x1c], eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
movups xmmword [ebp - 0x2c], xmm0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417617
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.004020e0
push 0x428e30
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.00405830
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x44]
push eax
mov ecx, edi
call fcn.0040ab30
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x4176a6
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41769c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4176d2
push ecx
push edx
call fcn.0041c16d
add esp, 8
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x4176e2
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4176d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4176d8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041c16d
add esp, 8
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x41791d
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x41791d
push eax
push str.unkonw_folder:__08X
push str.config_bin
call fcn.00401ea0
add esp, 0xc
mov dword [ebp - 0x68], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x14
call fcn.0040df40
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x68]
mov ax, word [eax]
lea edx, [ebp - 0x60]
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
cmp ax, word [edx]
mov eax, 0x28
movups xmmword [ecx], xmm0
add eax, ecx
movups xmmword [ecx + 0x10], xmm0
movq qword [ecx + 0x20], xmm0
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
push 2
push 0x429c28
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call fcn.004020e0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub eax, ecx
sar eax, 1
dec eax
push eax
push ecx
push str._SystemDrive_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x41782c
mov edx, dword [ebp - 0x20]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4177c7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.004020e0
mov ecx, dword [ebp - 0x48]
cmp ecx, 7
jbe 0x41781a
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417810
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41790d
push ecx
push edx
call fcn.0041c16d
add esp, 8
movups xmm0, xmmword [ebp - 0x44]
movups xmmword [ebp - 0x5c], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [ebp - 0x4c], xmm0
mov ecx, dword [ebp - 0x4c]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 0x15
jb 0x41793f
cmp dword [ebp - 0x48], 7
lea eax, [ebp - 0x5c]
push 0x15
cmova eax, dword [ebp - 0x5c]
push str.Program_Files__x86__
push ecx
push eax
push ecx
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x44]
call fcn.004063c0
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.0040ab30
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x4178a0
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417896
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41790d
push ecx
push edx
call fcn.0041c16d
add esp, 8
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x4178ae
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x48]
cmp ecx, 7
jbe 0x4178e4
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4178da
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41790d
push ecx
push edx
call fcn.0041c16d
add esp, 8
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x41791d
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x417913
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x417913
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041c16d
add esp, 8
mov eax, edi
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.0041bed2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.00401e90
int3