Function at 0x4305ba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x7940
call fcn.00612c90
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x272b]
push esi
push edi
mov esi, 0x3e7
mov dword [ebp - 0x793c], ecx
push esi
push 0
push eax
mov byte [ebp - 0x272c], 0
call fcn.006390b0
add esp, 0xc
mov byte [ebp - 0x2344], 0
lea eax, [ebp - 0x2343]
push esi
push 0
push eax
call fcn.006390b0
mov esi, str.profiles.txt
lea edi, [ebp - 0x18]
add esp, 0xc
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.00643470
pop ecx
cmp eax, 1
jae 0x43066a
lea eax, [ebp - 0x2344]
push eax
xor eax, eax
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x43065d
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._sRazorSQLdata_s
lea ebx, [ebp - 0x2344]
jmp 0x43066f
mov eax, str._sdata_s
lea ecx, [ebp - 0x18]
mov edi, 0x3e8
push ecx
push ebx
push eax
lea eax, [ebp - 0x272c]
push edi
push eax
call fcn.00402e0a
add esp, 0x14
lea eax, [ebp - 0x272c]
xor ebx, ebx
mov dword [ebp - 0x7938], ebx
push 0x6c63d0
push eax
lea eax, [ebp - 0x7938]
push eax
call fcn.00649a00
add esp, 0xc
test eax, eax
jne 0x43064a
cmp dword [ebp - 0x7938], ebx
je 0x43064a
lea esi, [edi - 1]
mov byte [ebp - 0x13a4], bl
push esi
lea eax, [ebp - 0x13a3]
push ebx
push eax
call fcn.006390b0
add esp, 0xc
mov byte [ebp - 0x178c], bl
lea eax, [ebp - 0x178b]
push esi
push ebx
push eax
call fcn.006390b0
add esp, 0xc
mov byte [ebp - 0xfbc], bl
lea eax, [ebp - 0xfbb]
push esi
push ebx
push eax
call fcn.006390b0
add esp, 0xc
mov byte [ebp - 0x7ec], bl
lea eax, [ebp - 0x7eb]
push esi
push ebx
push eax
call fcn.006390b0
add esp, 0xc
mov byte [ebp - 0x404], bl
lea eax, [ebp - 0x403]
push esi
push ebx
push eax
call fcn.006390b0
add esp, 0xc
mov byte [ebp - 0xbd4], bl
lea eax, [ebp - 0xbd3]
push esi
push ebx
push eax
call fcn.006390b0
add esp, 0xc
lea eax, [ebp - 0x5224]
push dword [ebp - 0x7938]
push 0x2710
push eax
call fcn.006494dd
mov esi, dword [ebp - 0x793c]
jmp 0x430b31
lea eax, [ebp - 0x5224]
push eax
call fcn.00643470
pop ecx
test eax, eax
je 0x430799
lea eax, [ebp - 0x5224]
push eax
call fcn.00643470
dec eax
pop ecx
cmp eax, 0x2710
jae 0x430c2b
mov byte [ebp + eax - 0x5224], bl
lea ecx, [ebp - 0x5224]
call fcn.004047e7
lea eax, [ebp - 0x5224]
push eax
lea eax, [ebp - 0x7934]
push 0x2710
push eax
call fcn.006494f3
add esp, 0xc
lea eax, [ebp - 0x7934]
push eax
call fcn.00643470
pop ecx
inc eax
push eax
lea eax, [ebp - 0x7934]
push eax
call fcn.0064ffd4
push 0x6cbcb4
call fcn.00643470
add esp, 0xc
push eax
lea eax, [ebp - 0x7934]
push 0x6cbcb4
push eax
call fcn.00650030
add esp, 0xc
test eax, eax
je 0x430a1b
lea eax, [ebp - 0x7934]
push str.__z_
push eax
call fcn.00639500
pop ecx
pop ecx
test eax, eax
jne 0x430a1b
push str.host
call fcn.00643470
pop ecx
push eax
lea eax, [ebp - 0x7934]
push str.host
push eax
call fcn.00650030
add esp, 0xc
test eax, eax
jne 0x43086b
lea eax, [ebp - 0x5224]
push 0x3d
push eax
call fcn.006393d0
inc eax
push eax
lea eax, [ebp - 0x7ec]
push edi
push eax
call fcn.006494f3
lea ecx, [ebp - 0x7ec]
jmp 0x430947
push str.port
call fcn.00643470
pop ecx
push eax
lea eax, [ebp - 0x7934]
push str.port
push eax
call fcn.00650030
add esp, 0xc
test eax, eax
jne 0x4308b7
lea eax, [ebp - 0x5224]
push 0x3d
push eax
call fcn.006393d0
inc eax
push eax
lea eax, [ebp - 0x404]
push edi
push eax
call fcn.006494f3
lea ecx, [ebp - 0x404]
jmp 0x430947
push str.databasename
call fcn.00643470
pop ecx
push eax
lea eax, [ebp - 0x7934]
push str.databasename
push eax
call fcn.00650030
add esp, 0xc
test eax, eax
jne 0x430900
lea eax, [ebp - 0x5224]
push 0x3d
push eax
call fcn.006393d0
inc eax
push eax
lea eax, [ebp - 0xbd4]
push edi
push eax
call fcn.006494f3
lea ecx, [ebp - 0xbd4]
jmp 0x430947
push str.user
call fcn.00643470
pop ecx
push eax
lea eax, [ebp - 0x7934]
push str.user
push eax
call fcn.00650030
add esp, 0xc
test eax, eax
jne 0x430954
lea eax, [ebp - 0x5224]
push 0x3d
push eax
call fcn.006393d0
inc eax
push eax
lea eax, [ebp - 0xfbc]
push edi
push eax
call fcn.006494f3
lea ecx, [ebp - 0xfbc]
add esp, 0x14
call fcn.004047e7
jmp 0x430b1a
push 0x6c9d7c
call fcn.00643470
pop ecx
push eax
lea eax, [ebp - 0x7934]
push 0x6c9d7c
push eax
call fcn.00650030
add esp, 0xc
test eax, eax
jne 0x430b1a
lea eax, [ebp - 0x5224]
push 0x3d
push eax
call fcn.006393d0
inc eax
push eax
lea eax, [ebp - 0x178c]
push edi
push eax
call fcn.006494f3
add esp, 0x14
lea ecx, [ebp - 0x178c]
call fcn.004047e7
push str.VFW
call fcn.00643470
pop ecx
push eax
lea eax, [ebp - 0x178c]
push str.VFW
push eax
call fcn.0065106c
add esp, 0xc
test eax, eax
jne 0x430b1a
lea eax, [ebp - 0x1786]
push eax
lea eax, [ebp - 0x2b14]
push edi
push eax
call fcn.006494f3
add esp, 0xc
lea eax, [ebp - 0x2b14]
push str.__RIG
push eax
call fcn.00639500
pop ecx
pop ecx
test eax, eax
je 0x430b1a
push ecx
lea edx, [ebp - 0x13a4]
mov byte [eax], bl
lea ecx, [ebp - 0x2b14]
call fcn.0043045e
pop ecx
jmp 0x430b1a
lea eax, [ebp - 0x13a4]
push eax
call fcn.00643470
pop ecx
test eax, eax
je 0x430af6
lea eax, [ebp - 0x404]
push eax
call fcn.00643470
pop ecx
test eax, eax
je 0x430a66
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x7ec]
push eax
push str._s:_s
lea eax, [ebp - 0x1f5c]
push edi
push eax
call fcn.00402e0a
add esp, 0x14
jmp 0x430a7d
lea eax, [ebp - 0x7ec]
push eax
lea eax, [ebp - 0x1f5c]
push edi
push eax
call fcn.006494f3
add esp, 0xc
lea eax, [ebp - 0xbd4]
push eax
call fcn.00643470
pop ecx
test eax, eax
je 0x430ab3
lea eax, [ebp - 0xbd4]
push eax
lea eax, [ebp - 0xfbc]
push eax
push str._s__DB_s_
lea eax, [ebp - 0x1b74]
push edi
push eax
call fcn.00402e0a
add esp, 0x14
jmp 0x430aca
lea eax, [ebp - 0xfbc]
push eax
lea eax, [ebp - 0x1b74]
push edi
push eax
call fcn.006494f3
add esp, 0xc
push 0xffffffffffffffff
mov ecx, 0x6c5bb9
lea eax, [ebp - 0x13a4]
push ecx
push eax
lea eax, [ebp - 0x1b74]
push eax
lea eax, [ebp - 0x1f5c]
push eax
push ecx
push 0x26f
push 6
mov ecx, esi
call fcn.0043ee6b
mov byte [ebp - 0x404], bl
mov byte [ebp - 0xbd4], bl
mov byte [ebp - 0xfbc], bl
mov byte [ebp - 0x7ec], bl
mov byte [ebp - 0x178c], bl
mov byte [ebp - 0x13a4], bl
push dword [ebp - 0x7938]
lea eax, [ebp - 0x5224]
push 0x2710
push eax
call fcn.006494dd
add esp, 0xc
test eax, eax
jne 0x430768
push dword [ebp - 0x7938]
call fcn.00649273
pop ecx
lea eax, [ebp - 0x13a4]
push eax
call fcn.00643470
pop ecx
test eax, eax
je 0x430c23
lea eax, [ebp - 0x404]
push eax
call fcn.00643470
pop ecx
test eax, eax
je 0x430b93
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x7ec]
push eax
push str._s:_s
lea eax, [ebp - 0x1f5c]
push edi
push eax
call fcn.00402e0a
add esp, 0x14
jmp 0x430baa
lea eax, [ebp - 0x7ec]
push eax
lea eax, [ebp - 0x1f5c]
push edi
push eax
call fcn.006494f3
add esp, 0xc
lea eax, [ebp - 0xbd4]
push eax
call fcn.00643470
pop ecx
test eax, eax
je 0x430be0
lea eax, [ebp - 0xbd4]
push eax
lea eax, [ebp - 0xfbc]
push eax
push str._s__DB_s_
lea eax, [ebp - 0x1b74]
push edi
push eax
call fcn.00402e0a
add esp, 0x14
jmp 0x430bf7
lea eax, [ebp - 0xfbc]
push eax
lea eax, [ebp - 0x1b74]
push edi
push eax
call fcn.006494f3
add esp, 0xc
push 0xffffffffffffffff
mov edx, 0x6c5bb9
lea eax, [ebp - 0x13a4]
push edx
push eax
lea eax, [ebp - 0x1b74]
push eax
lea ecx, [ebp - 0x1f5c]
push ecx
push edx
push 0x26f
push 6
mov ecx, esi
call fcn.0043ee6b
xor eax, eax
inc eax
jmp 0x43064c
call fcn.00612782
int3