Function at 0x492e60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd20
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x20]
call sub.rtl120.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x49307e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [ebp + 0x20]
call sub.rtl120.bpl__System__ValLong_qqrx20System_UnicodeStringri
mov esi, eax
lea eax, [ebp - 0x2d0]
xor ecx, ecx
mov edx, 0x2b4
call sub.rtl120.bpl__System__FillChar_qqrpvib
cmp dword [ebp + 0x20], 0
je 0x492f1b
cmp dword [ebp - 0x10], 0
je 0x492f1b
mov eax, dword [ebp + 0x20]
call fcn.004077c0
test al, al
jne 0x492ed1
mov eax, dword [ebp + 0x20]
call fcn.004077c8
test al, al
je 0x492ef4
push 0x4000
push 0x2b4
lea eax, [ebp - 0x2d0]
push eax
push 0
mov eax, dword [ebp + 0x20]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call fcn.004022f8
jmp 0x492f15
push 0x4010
push 0x2b4
lea eax, [ebp - 0x2d0]
push eax
push 0
mov eax, dword [ebp + 0x20]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call fcn.004022f8
mov esi, dword [ebp - 0x2cc]
cmp byte [ebp + 0x1c], 0
je 0x492f42
push 0x4000
push 0x2b4
lea eax, [ebp - 0x2d0]
push eax
push 0
push 0x493090
call fcn.004022f8
mov edi, eax
jmp 0x492f61
push 0x4001
push 0x2b4
lea eax, [ebp - 0x2d0]
push eax
push 0
push 0x493090
call fcn.004022f8
mov edi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.00402344
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.004021f8
test bl, bl
je 0x492fa9
cmp byte [ebp + 0x14], 0
jne 0x492fa9
push 1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00409134
push eax
push esi
push edi
call fcn.0040233c
mov eax, dword [ebp - 4]
call fcn.00493818
test byte [ebp + 0x14], bl
je 0x493068
mov dl, 1
mov eax, dword [sym.imp.vcl120.bpl__Graphics_TBitmap_]
call 0x40925c
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x493061
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00409294
call fcn.00409134
push eax
push esi
push edi
call fcn.0040233c
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2e0], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2dc], eax
fild dword [ebp - 0x14]
fmul qword [ebp + 0xc]
call sub.rtl120.bpl__System__ROUND_qqrv
add eax, dword [ebp - 8]
mov dword [ebp - 0x2d8], eax
fild dword [ebp - 0x18]
fmul qword [ebp + 0xc]
call sub.rtl120.bpl__System__ROUND_qqrv
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x2d4], eax
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x2e0]
mov eax, dword [ebp - 4]
call fcn.00492d80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493068
mov eax, dword [ebp - 0x1c]
call sub.rtl120.bpl__System_TObject_Free_qqrv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493085
lea eax, [ebp + 0x20]
call sub.rtl120.bpl__System__UStrClr_qqrpv
ret