Function at 0x401400
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4540
call fcn.004174d0
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x20a
lea eax, [ebp - 0x538]
push 0
push eax
call fcn.004044b0
add esp, 0xc
lea eax, [ebp - 0x538]
push 0
push 0x28
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.svproxy.txt
lea eax, [ebp - 0x538]
push eax
push str._s_s
push 0x208
push 0x47d378
call fcn.004010d0
push 0x41da3c
push 0x47d378
call fcn.00408865
mov edi, eax
add esp, 0x1c
mov dword [ebp - 0x4540], edi
test edi, edi
jne 0x40148e
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004031d7
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x4538]
push 0x64
push eax
call fcn.00408cc8
add esp, 0xc
test eax, eax
je 0x401819
push ebx
push esi
nop word [eax + eax]
lea ecx, [ebp - 0x4538]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4014c0
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jb 0x4014fb
cmp word [ebp + ecx*2 - 0x453a], 0xa
jne 0x4014fb
lea eax, [ecx*2 - 2]
cmp eax, 0x4000
jae 0x401836
xor edx, edx
mov word [ebp + eax - 0x4538], dx
cmp ecx, 2
jb 0x401528
cmp word [ebp + ecx*2 - 0x453c], 0xd
jne 0x401528
lea ecx, [ecx*2 - 4]
cmp ecx, 0x4000
jae 0x401836
xor eax, eax
mov word [ebp + ecx - 0x4538], ax
lea eax, [ebp - 0x4538]
push 0x41da40
push eax
call fcn.00403fa6
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4017fd
push 0x192
lea eax, [ebp - 0x32a]
push 0
push eax
call fcn.004044b0
push 0x194
lea eax, [ebp - 0x198]
push 0
push eax
call fcn.004044b0
lea eax, [ebp - 0x4538]
mov esi, ebx
sub esi, eax
mov dword [ebp - 0x453c], eax
inc esi
lea ecx, [ebp - 0x32c]
shr esi, 1
xor eax, eax
add esp, 0x18
xor edx, edx
cmp dword [ebp - 0x453c], ebx
cmova esi, eax
test esi, esi
je 0x4015b8
lea edi, [ebp - 0x4538]
mov eax, ecx
sub edi, eax
mov ax, word [edi + ecx]
inc edx
mov word [ecx], ax
add ecx, 2
cmp edx, esi
jb 0x4015a3
mov edi, dword [ebp - 0x4540]
xor eax, eax
lea edx, [ebx + 2]
mov word [ecx], ax
lea eax, [ebp - 0x198]
movzx ecx, word [edx]
test cx, cx
je 0x4015e1
mov esi, eax
sub edx, esi
mov word [eax], cx
add eax, 2
movzx ecx, word [edx + eax]
test cx, cx
jne 0x4015d2
xor ecx, ecx
lea esi, [ebp - 0x32c]
mov word [eax], cx
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4015f0
sub esi, ecx
sar esi, 1
je 0x40167d
lea ecx, [ebp - 0x198]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401610
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jbe 0x40167d
lea ecx, [ebp - 0x32c]
mov eax, 0x41da44
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401656
test dx, dx
je 0x401652
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401656
add eax, 4
add ecx, 4
test dx, dx
jne 0x401630
xor eax, eax
jmp 0x40165b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40167d
lea eax, [ebp - 0x198]
push eax
push 0x41d9c8
push 0xfa0
push 0x479650
call fcn.004010d0
add esp, 0x10
test esi, esi
je 0x4017fd
lea ecx, [ebp - 0x198]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401690
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jbe 0x4016fd
lea ecx, [ebp - 0x32c]
mov eax, str.proxypass
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4016d6
test dx, dx
je 0x4016d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4016d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4016b0
xor eax, eax
jmp 0x4016db
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4016fd
lea eax, [ebp - 0x198]
push eax
push 0x41d9c8
push 0xfa0
push 0x47a5f0
call fcn.004010d0
add esp, 0x10
test esi, esi
je 0x4017fd
lea ecx, [ebp - 0x198]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401710
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jbe 0x40177d
lea ecx, [ebp - 0x32c]
mov eax, str.proxyhost
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401756
test dx, dx
je 0x401752
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401756
add eax, 4
add ecx, 4
test dx, dx
jne 0x401730
xor eax, eax
jmp 0x40175b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40177d
lea eax, [ebp - 0x198]
push eax
push 0x41d9c8
push 0xfa0
push 0x47b7a0
call fcn.004010d0
add esp, 0x10
test esi, esi
je 0x4017fd
lea ecx, [ebp - 0x198]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401790
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jbe 0x4017fd
lea ecx, [ebp - 0x32c]
mov eax, str.proxyport
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4017d6
test dx, dx
je 0x4017d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4017d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4017b0
xor eax, eax
jmp 0x4017db
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4017fd
lea eax, [ebp - 0x198]
push eax
push 0x41d9c8
push 0xfa0
push 0x47d580
call fcn.004010d0
add esp, 0x10
push edi
lea eax, [ebp - 0x4538]
push 0x64
push eax
call fcn.00408cc8
add esp, 0xc
test eax, eax
jne 0x4014b0
pop esi
pop ebx
push edi
call fcn.00408939
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop edi
call fcn.004031d7
mov esp, ebp
pop ebp
ret
call fcn.0040330e
int3