Function at 0x1000cb30
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x1b8
push 0xffffffffffffffff
push 0x10053fd3
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x1007fa04]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x14], ebx
call fcn.10001490
mov dword [ebp + 0x84], eax
lea eax, [ebp + 0x88]
mov dword [ebp + 0xa8], eax
mov word [ebp + 0xac], bx
mov word [ebp + 0xae], 0x20
mov byte [ebp + 0x88], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
call fcn.1004b7f0
mov edi, eax
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1000cbb0
sub eax, edx
mov esi, eax
push esi
lea ecx, [ebp + 0x84]
call fcn.10045a00
push esi
push edi
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
cmp word [ebp + 0xac], bx
jne 0x1000cc1c
lea esi, [ebp + 0x84]
call fcn.1000ba10
test al, al
jne 0x1000cc1c
mov eax, str.c:Program_FilesFirebird_
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1000cbf4
sub eax, edx
mov esi, eax
push esi
lea ecx, [ebp + 0x84]
call fcn.10045a00
push esi
push str.c:Program_FilesFirebird_
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov dword [ebp - 4], ebx
jmp 0x1000cc44
movzx eax, word [ebp + 0xac]
mov esi, 0x103
cmp eax, esi
jae 0x1000cc56
mov esi, eax
mov ecx, dword [ebp + 0xa8]
push esi
push ecx
push 0x10083180
call sub.MSVCR80.dll_memcpy
mov byte [esi + 0x10083180], 0
mov dword [0x10083494], 0x10083180
call fcn.10001490
lea edx, [ebp + 0x5c]
mov edi, 0x20
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x7c], edx
mov word [ebp + 0x80], bx
mov word [ebp + 0x82], di
mov byte [ebp + 0x5c], 0
lea eax, [ebp + 0x58]
push eax
push str.FIREBIRD_TMP
mov byte [ebp - 4], 3
call fcn.10046ec0
add esp, 0x14
test al, al
jne 0x1000ccdf
push 0x10083288
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, ebx
je 0x1000ccdf
cmp eax, 0x104
jae 0x1000ccdf
push 0x10083288
lea ecx, [ebp + 0x58]
call fcn.10005150
mov ax, word [ebp + 0x80]
cmp ax, bx
je 0x1000ccf1
cmp ax, 0x104
jb 0x1000cd13
push 8
lea ecx, [ebp + 0x58]
call fcn.10045a00
mov ecx, dword [str.c:_temp_]
mov dword [eax], ecx
mov edx, dword [0x10067700]
mov dword [eax + 4], edx
mov ax, word [ebp + 0x80]
movzx eax, ax
mov esi, 0x103
cmp eax, esi
jae 0x1000cd21
mov esi, eax
mov eax, dword [ebp + 0x7c]
push esi
push eax
push 0x10083288
call sub.MSVCR80.dll_memcpy
mov byte [esi + 0x10083288], 0
call fcn.10001490
lea ecx, [ebp + 0x30]
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x50], ecx
mov word [ebp + 0x54], bx
mov word [ebp + 0x56], di
mov byte [ebp + 0x30], 0
lea edx, [ebp + 0x2c]
push edx
push str.FIREBIRD_LOCK
mov byte [ebp - 4], 4
call fcn.10046ec0
add esp, 0x14
test al, al
jne 0x1000ce0f
push 1
push 0x23
lea eax, [ebp + 0xb0]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x1000cf64
push str.firebird
push 8
lea ecx, [ebp - 0x6c]
call fcn.10045930
mov bl, 5
lea eax, [ebp + 0xb0]
mov byte [ebp - 4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1000cda5
lea ecx, [ebp + 0xb0]
push ecx
sub eax, edx
push eax
lea ecx, [ebp - 0x40]
call fcn.10045930
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 0x2c]
push ecx
mov byte [ebp - 4], 6
call fcn.10046550
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x3c]
add esp, 0xc
cmp eax, edx
mov byte [ebp - 4], bl
je 0x1000cdf2
test eax, eax
je 0x1000cdf2
mov ecx, dword [eax - 4]
push eax
call fcn.10004590
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x68]
cmp eax, ecx
mov byte [ebp - 4], 4
je 0x1000ce0d
test eax, eax
je 0x1000ce0d
mov ecx, dword [eax - 4]
push eax
call fcn.10004590
xor ebx, ebx
movzx eax, word [ebp + 0x54]
mov esi, 0x103
cmp eax, esi
jae 0x1000ce1e
mov esi, eax
mov eax, dword [ebp + 0x50]
push esi
push eax
push 0x10083078
call sub.MSVCR80.dll_memcpy
mov byte [esi + 0x10083078], 0
mov dword [0x10083498], 0x10083078
call fcn.10001490
lea ecx, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp + 0x24], ecx
mov word [ebp + 0x28], bx
mov word [ebp + 0x2a], 0x20
mov byte [ebp + 4], 0
lea edx, [ebp]
push edx
mov ebx, 7
push str.FIREBIRD_MSG
mov byte [ebp - 4], bl
call fcn.10046ec0
add esp, 0x14
test al, al
jne 0x1000ce9b
movzx eax, word [ebp + 0xac]
mov ecx, dword [ebp + 0xa8]
push eax
push ecx
push eax
lea ecx, [ebp]
call fcn.10045a00
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov dword [ebp - 4], ebx
movzx eax, word [ebp + 0x28]
mov esi, 0x103
cmp eax, esi
jae 0x1000ceaa
mov esi, eax
mov edi, dword [ebp + 0x24]
push esi
push edi
push 0x10083390
call sub.MSVCR80.dll_memcpy
lea edx, [ebp + 4]
add esp, 0xc
cmp edi, edx
mov byte [esi + 0x10083390], 0
mov dword [0x1008349c], 0x10083390
mov byte [ebp - 4], 4
je 0x1000cee5
test edi, edi
je 0x1000cee5
mov ecx, dword [edi - 4]
push edi
call fcn.10004590
mov eax, dword [ebp + 0x50]
lea ecx, [ebp + 0x30]
cmp eax, ecx
mov byte [ebp - 4], 3
je 0x1000cf00
test eax, eax
je 0x1000cf00
mov ecx, dword [eax - 4]
push eax
call fcn.10004590
mov eax, dword [ebp + 0x7c]
lea edx, [ebp + 0x5c]
cmp eax, edx
mov byte [ebp - 4], 0
je 0x1000cf1b
test eax, eax
je 0x1000cf1b
mov ecx, dword [eax - 4]
push eax
call fcn.10004590
mov eax, dword [ebp + 0xa8]
lea ecx, [ebp + 0x88]
cmp eax, ecx
mov dword [ebp - 4], 0xffffffff
je 0x1000cf3f
test eax, eax
je 0x1000cf3f
mov ecx, dword [eax - 4]
push eax
call fcn.10004590
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1b4]
xor ecx, ebp
call fcn.10052756
add ebp, 0x1b8
mov esp, ebp
pop ebp
ret
movzx eax, word [ebp + 0xac]
mov edx, dword [ebp + 0xa8]
push eax
push edx
push eax
lea ecx, [ebp + 0x2c]
call fcn.10045a00
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
jmp 0x1000ce0f