Function at 0x4365d2
Capabilities:
Get common file path
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x146c
call fcn.00612c90
mov eax, dword [0x6ffe74]
xor eax, esp
mov dword [esp + 0x1468], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x4c9]
push esi
push edi
mov esi, 0x3e7
mov dword [esp + 0x18], ecx
push esi
push 0
push eax
mov byte [esp + 0x4dc], 0
call fcn.006390b0
add esp, 0xc
mov byte [esp + 0xe8], 0
lea eax, [esp + 0xe9]
push esi
push 0
push eax
call fcn.006390b0
mov esi, str.SharedSettings.ccs
lea edi, [esp + 0x28]
add esp, 0xc
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.00643470
pop ecx
cmp eax, 1
jae 0x436690
lea eax, [esp + 0xe8]
push eax
xor eax, eax
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x436689
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [esp + 0x1474]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006122f0
mov esp, ebp
pop ebp
ret 4
lea ebx, [esp + 0xe8]
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x6c643c
lea eax, [esp + 0x4dc]
push 0x3e8
push eax
call fcn.00402e0a
add esp, 0x14
lea edx, [esp + 0x10]
xor ebx, ebx
lea ecx, [esp + 0x4d0]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
push ebx
push 1
call fcn.004bffc8
pop ecx
pop ecx
test eax, eax
jne 0x436670
push 0x12
pop ecx
mov esi, str.SELECT_GlobalValue_FROM_TGlobalSettings_WHERE_GlobalNameMagicNumber_
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
push ebx
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x38]
movsw word es:[edi], word [esi]
push eax
call fcn.00643470
pop ecx
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x20]
call fcn.0049d5de
add esp, 0x14
test eax, eax
jne 0x436670
mov esi, dword [esp + 0xc]
test esi, esi
je 0x436670
push esi
call fcn.0047234d
pop ecx
cmp eax, 0x64
jne 0x436670
push ebx
push esi
call fcn.00472860
mov edi, dword [esi]
pop ecx
pop ecx
mov ecx, esi
call fcn.00471953
test eax, eax
je 0x43674c
mov ecx, 0x15fb2
call fcn.004c0852
jmp 0x4367a2
cmp dword [edi + 0xc], ebx
je 0x43675b
push dword [edi + 0xc]
call dword [0x70f168]
pop ecx
cmp dword [esi + 0x8c], ebx
jl 0x436776
jg 0x43676d
cmp dword [esi + 0x88], ebx
jbe 0x436776
mov edx, esi
mov ecx, edi
call fcn.00471970
mov ecx, esi
call fcn.0047035b
mov ecx, esi
mov ebx, eax
call fcn.004704f6
cmp byte [edi + 0x57], 0
jne 0x436790
test ebx, ebx
je 0x436799
mov edx, ebx
mov ecx, edi
call fcn.00451a83
mov ecx, edi
call fcn.004be94a
xor ebx, ebx
push 0x64
lea eax, [esp + 0x84]
push ebx
push eax
call fcn.006390b0
add esp, 0xc
lea eax, [esp + 0x14]
lea edx, [esp + 0x80]
push eax
call fcn.00436469
push 6
pop ecx
mov dword [esp], 0x3d0
lea eax, [esp + 0x8d4]
mov esi, str.select__from_tservers_
lea edi, [esp + 0x8bc]
push ebx
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.006390b0
add esp, 0xc
lea eax, [esp + 0xc]
push ebx
push eax
lea eax, [esp + 0x8c0]
push eax
call fcn.00643470
pop ecx
push eax
lea eax, [esp + 0x8c4]
push eax
push dword [esp + 0x20]
call fcn.0049d5de
add esp, 0x14
test eax, eax
jne 0x436670
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x436670
jmp 0x4368e5
cmp eax, 0x64
jne 0x4368f5
push 3
push ebx
mov byte [esp + 0xca8], 0
mov byte [esp + 0x1090], 0
call fcn.004728b2
push 4
push ebx
mov dword [esp + 0x1c], eax
call fcn.004728b2
push 5
push ebx
mov esi, eax
call fcn.004728b2
add esp, 0x14
lea edx, [esp + 0x84]
mov edi, eax
mov ecx, esi
lea eax, [esp + 0x108c]
push eax
push dword [esp + 0x1c]
call fcn.004364b3
pop ecx
pop ecx
lea eax, [esp + 0xca4]
mov ecx, edi
push eax
push dword [esp + 0x1c]
lea edx, [esp + 0x8c]
call fcn.004364b3
add esp, 0xc
lea eax, [esp + 0xca0]
push eax
call fcn.00643470
pop ecx
test eax, eax
je 0x4368e5
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xca0]
push 0xffffffffffffffff
mov esi, 0x6c5bb9
push esi
push eax
lea eax, [esp + 0x1094]
push eax
push dword [esp + 0x1c]
push esi
push 0x156
push 4
call fcn.0043ee6b
push ebx
call fcn.0047234d
pop ecx
cmp eax, 0x65
jne 0x436831
mov esi, dword [ebx]
mov ecx, ebx
call fcn.00471953
test eax, eax
je 0x43690e
mov ecx, 0x15fb2
call fcn.004c0852
jmp 0x436965
cmp dword [esi + 0xc], 0
je 0x43691e
push dword [esi + 0xc]
call dword [0x70f168]
pop ecx
cmp dword [ebx + 0x8c], 0
jl 0x43693b
jg 0x436932
cmp dword [ebx + 0x88], 0
jbe 0x43693b
mov edx, ebx
mov ecx, esi
call fcn.00471970
mov ecx, ebx
call fcn.0047035b
mov ecx, ebx
mov edi, eax
call fcn.004704f6
cmp byte [esi + 0x57], 0
jne 0x436955
test edi, edi
je 0x43695e
mov edx, edi
mov ecx, esi
call fcn.00451a83
mov ecx, esi
call fcn.004be94a
mov ecx, dword [esp + 0x10]
xor edx, edx
call fcn.004be7da
xor eax, eax
inc eax
jmp 0x436672